You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ls -g --depth=0 --link=true
# 下面这个不太管用
ls -l node_modules | grep '>'
全局安装
sudo npm install -g <packageName>
如果还是提示权限问题,如:
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/Users/wyz/Library/Caches/node-gyp/12.16.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@mtfe/mmp-cli/node_modules/@mtfe/dio/.node-gyp"
只安装
dependencies
的依赖(不安装
devDependencies
的依赖)查看 link 情况
全局安装
如果还是提示权限问题,如:
安装命令后增加
--unsafe-perm
查看全局安装
全局一般安装在:
/usr/local/lib/node_modules
卸载全局安装
忽略失败模块
将要忽略的模块加入
package.json
里的optionalDependencies
字段感谢:angular/angular-cli#8551 (comment)
查看包历史版本
The text was updated successfully, but these errors were encountered: