|
解决办法:
添加--unsafe-perm 参数,如 #npm install --registry=https://registry.npm.taobao.org --unsafe-perm 说明:npm会有生命周期,某个包会有生命周期来执行一些东西,安全起见会自动降级导致没有权限执行一些操作,通过--unsafe-perm参数来解锁该限制。 一劳永逸的方法: npm config set unsafe-perm(针对当前用户的) npm config -g set unsafe-perm(全局的) 转自:https://blog.csdn.net/weixin_34130269/article/details/91394709 |
|
|