为什么npm set global=false 会无效?
发布于 11 年前 作者 napster99 7245 次浏览 最后一次编辑是 8 年前

在npm安装完后,默认的是非全局安装,npm get global 输出为false

npm get global false npm set global=true npm get global true npm set global=false true <—为什么这里输出还是为true ?

2 回复
➤➤ npm get global
false
➤➤ npm set global true
➤➤ npm get global
true

使用npm config ls看一下global的设置及文件,如果是用户.npmrc文件,找到它删除后就可以了

回到顶部