WARN checkPermissions Missing write access to /usr/local/lib/node_modules
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了WARN checkPermissions Missing write access to /usr/local/lib/node_modules,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1842字,纯文字阅读大概需要3分钟。
内容图文
![WARN checkPermissions Missing write access to /usr/local/lib/node_modules](/upload/InfoBanner/zyjiaocheng/518/1003bf42caa74889a2089cca210e1075.jpg)
npm install -g bower 报错
npm install -g bower
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in
修改npm包所安装目录的权限:
sudo chown -R $USER /usr/local
然后输入密码就可以了
ls -l /usr/local
查看目录是否已切换权限如果ls能够查看对应的目录则可以了如下图
接下来可以进行npm全局包安装:npm install -g bower
关注公众号回复视频、书籍关键字领取更多免费资料。
WARN checkPermissions Missing write access to /usr/local/lib/node_modules
标签:missing gem src tin inf current ror its 修改
本文系统来源:https://www.cnblogs.com/tonyY/p/12141984.html
内容总结
以上是互联网集市为您收集整理的WARN checkPermissions Missing write access to /usr/local/lib/node_modules全部内容,希望文章能够帮你解决WARN checkPermissions Missing write access to /usr/local/lib/node_modules所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。