首页 > 数据库技术 > 详细

nodejs gyp WARN EACCES user "root" does not have permission to access the dev dir

时间:2015-11-10 16:23:36      阅读:2424      评论:0      收藏:0      [点我收藏+]

node.js  v4.2.2 安装time模块是出错

gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/countly/nodejs/lib/node_modules/time/.node-gyp/0.10.36"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/countly/nodejs/lib/node_modules/time/.node-gyp"



百度了好久资料,终于发现了解决办法,特此记录

sudo  npm install time   -g --unsafe-perm 

增加了--unsafe-perm  

顺便写一下新颁布 express 的安装

npm  -g install express 

npm -g install express-generator





nodejs gyp WARN EACCES user "root" does not have permission to access the dev dir

原文:http://luhaiyou.blog.51cto.com/3179056/1711379

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!