bower的权限问题
装bootstrap的时候,先用sudo指令装了bower,但是一打 bower isntall bootstrap 就报错:
Error: EACCES, permission denied '/Users/narumi/.config/configstore/bower-github.yml' You don't have access to this file. at Object.fs.openSync (evalmachine.<anonymous>::) at Object.fs.readFileSync (evalmachine.<anonymous>::) at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js::) at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js::) at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js::) at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js::) at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js::) at Module._compile (module.js::) at Object.Module._extensions..js (module.js::) at Module.load (module.js::)
还想用sudo?然并luan。
bower ESUDO Cannot be run with sudo
借鉴了stackOverflow上面达人的回答,先chown
sudo chown -R $USER ~/.config/configstore/
然后再 bower install bootstrap 会提示
May bower anonymously report usage statistics to improve the tool over time? 敲个Y or N,回车
然搞定:
bower not-cached git://github.com/twbs/bootstrap.git#* bower resolve git://github.com/twbs/bootstrap.git#* bower download https://github.com/twbs/bootstrap/archive/v3.3.6.tar.gz bower progress bootstrap#* received .9MB of .8MB downloaded, % bower progress bootstrap#* received .9MB of .8MB downloaded, % bower progress bootstrap#* received .9MB of .8MB downloaded, % bower progress bootstrap#* received .0MB of .8MB downloaded, % bower progress bootstrap#* received .0MB of .8MB downloaded, % bower progress bootstrap#* received .0MB of .8MB downloaded, % bower progress bootstrap#* received .0MB of .8MB downloaded, % bower progress bootstrap#* received .1MB of .8MB downloaded, % bower progress bootstrap#* received .1MB of .8MB downloaded, % bower progress bootstrap#* received .2MB of .8MB downloaded, % bower progress bootstrap#* received .4MB of .8MB downloaded, % bower progress bootstrap#* received .6MB of .8MB downloaded, % bower progress bootstrap#* received .9MB of .8MB downloaded, % bower progress bootstrap#* received .3MB of .8MB downloaded, % bower progress bootstrap#* received .8MB of .8MB downloaded, % bower progress bootstrap#* received .2MB of .8MB downloaded, % bower progress bootstrap#* received .5MB of .8MB downloaded, % bower progress bootstrap#* received .6MB of .8MB downloaded, % bower progress bootstrap#* received .8MB of .8MB downloaded, % bower extract bootstrap#* archive.tar.gz bower resolved git://github.com/twbs/bootstrap.git#3.3.6 bower not-cached git://github.com/jquery/jquery-dist.git#1.9.1 - 2 bower resolve git://github.com/jquery/jquery-dist.git#1.9.1 - 2 bower download https://github.com/jquery/jquery-dist/archive/2.2.0.tar.gz bower extract jquery#1.9. - archive.tar.gz bower resolved git://github.com/jquery/jquery-dist.git#2.2.0 bower install bootstrap#3.3. bower install jquery#2.2.
bower的权限问题的更多相关文章
- 前端工程构建工具——Yeoman
一.Yeoman 简介 通常在开发新项目时我们都需要配置工程环境,开发目录,需要下载一些库.框架文件(如 jQuery.Backbone 等),配置编译环境(Less.Sass.Coffeescrip ...
- Asp.Net Core 项目实战之权限管理系统(1) 使用AdminLTE搭建前端
0 Asp.Net Core 项目实战之权限管理系统(0) 无中生有 1 Asp.Net Core 项目实战之权限管理系统(1) 使用AdminLTE搭建前端 2 Asp.Net Core 项目实战之 ...
- Asp.Net Core 项目实战之权限管理系统(5) 用户登录
0 Asp.Net Core 项目实战之权限管理系统(0) 无中生有 1 Asp.Net Core 项目实战之权限管理系统(1) 使用AdminLTE搭建前端 2 Asp.Net Core 项目实战之 ...
- Asp.Net Core 项目实战之权限管理系统(6) 功能管理
0 Asp.Net Core 项目实战之权限管理系统(0) 无中生有 1 Asp.Net Core 项目实战之权限管理系统(1) 使用AdminLTE搭建前端 2 Asp.Net Core 项目实战之 ...
- Asp.Net Core 项目实战之权限管理系统(7) 组织机构、角色、用户权限
0 Asp.Net Core 项目实战之权限管理系统(0) 无中生有 1 Asp.Net Core 项目实战之权限管理系统(1) 使用AdminLTE搭建前端 2 Asp.Net Core 项目实战之 ...
- Windows环境下的NodeJS+NPM+Bower安装配置步骤
Windows下的NodeJS安装是比较方便的(v0.6.0版本之后,支持windows native),只需要登陆官网(http://nodejs.org/),便可以看到首页的“INSTALL”按钮 ...
- Oracle命令:授权-收回权限-角色
Oracle命令:授权-收回权限-角色 oracle grant 不论授予何种权限,每条授权(grant)语句总是由三部分组成: 1) 接受者部分是准备获得权限的一个或多个用户的列表. 2)关键字权限 ...
- Spring Boot 之 RESRful API 权限控制
摘要: 原创出处:www.bysocket.com 泥瓦匠BYSocket 希望转载,保留摘要,谢谢! “简单,踏实~ 读书写字放屁” 一.为何用RESTful API 1.1 RESTful是什么? ...
- ubuntu14.04下nodejs + npm + bower的安装、调试和部署
1. 简介 本文介绍ubuntu14.04下nodejs+npm+bower的安装.调试和部署 参考文档 https://docs.npmjs.com/getting-started https: ...
随机推荐
- MapReduce中的Join算法
在关系型数据库中Join是非常常见的操作,各种优化手段已经到了极致.在海量数据的环境下,不可避免的也会碰到这种类型的需求,例如在数据分析时需要从不同的数据源中获取数据.不同于传统的单机模式,在分布式存 ...
- .NET 解析HTML代码——NSoup
NSoup是一个开源框架,是JSoup(Java)的.NET移植版本 1.直接用起来 NSoup.Nodes.Document htmlDoc = NSoup.NSoupClient.Parse(HT ...
- hdu2034java
人见人爱A-B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submis ...
- Android 高级UI设计笔记01:使用ExpandableListView组件(ListView的扩展)
1.ExpandableListView是一个用来显示二级节点的ListView. 比如如下效果的界面: 2.使用ExpandableListView步骤 (1)要给ExpandableListVie ...
- C#中的两种debug方法
这篇文章主要介绍了C#中的两种debug方法介绍,本文讲解了代码用 #if DEBUG 包裹.利用宏定义两种方法,需要的朋友可以参考下 第一种:需要把调试方法改成debug代码用 #if DEBU ...
- 【原】window上安装elasticserach
[window上安装elasticserach] 系统环境:2008R2 x64测试安装用的服务器IP:192.168.12.52elasticsearch版本:2.3.4JDK版本:jdk 1.8. ...
- TransactionScope简单用法
记录TransactionScope简单用法,示例如下: void Test() { using (TransactionScope scope = new TransactionScope()) { ...
- [解答]对‘’未定义的引用 collect2: 错误: ld 返回 1
写的makefile适用于32位,但是放到64位机器上make就有问题. 需要在makefile中gcc -o....的结尾加上-pthread,例如: bloomfilter.o: bloomfil ...
- Oracle学习【语句查询】
基本查询语句any和all不能单独使用,必须和比较符一起使用>any 大于最小的例如:select * from emp where sal >any(1000,2000);<any ...
- GCDTimer
#import <Foundation/Foundation.h> @interface JKTimerManager : NSObject + (instancetype)sharedT ...