简体   繁体   English

npm WARN checkPermissions 缺少写权限

[英]npm WARN checkPermissions Missing write access

I have been trying to fix the issue of running node without using sudo on my mac but I keep getting this message:我一直在尝试在我的 Mac 上不使用 sudo 的情况下解决运行节点的问题,但我不断收到以下消息:

npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm And still find no fix for that. npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm仍然找不到解决办法。 Has anyone seen this issue before?有没有人见过这个问题?

I have been trying to fix the issue of running node without using sudo on my mac but I keep getting this message:我一直在尝试解决在我的 mac 上不使用 sudo 运行节点的问题,但我不断收到此消息:

npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm And still find no fix for that. npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm并且仍然找不到解决方法。 Has anyone seen this issue before?有没有人见过这个问题?

I have been trying to fix the issue of running node without using sudo on my mac but I keep getting this message:我一直在尝试解决在我的 mac 上不使用 sudo 运行节点的问题,但我不断收到此消息:

npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm And still find no fix for that. npm WARN checkPermissions Missing write access to /Users/myuser/.npm-packages/lib/node_modules/npm并且仍然找不到解决方法。 Has anyone seen this issue before?有没有人见过这个问题?

Works for me on Ubuntu:在 Ubuntu 上为我工作:

sudo chown -R $USER /usr/local sudo chown -R $USER /usr/local

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM