我正在尝试全局安装 Bower,它安装在
C:\Users\{{user}}\AppData\Roaming\npm\node_modules\bower
我已经在上面添加了 Path 和 NODE_PATH 的系统路径,但是在运行 bower 时,它仍然找不到模块。
npm-config 的前缀是:
C:\Users\{{user}}\AppData\Roaming\npm
但是稍后在列表中将其声明为
“C:\Program Files (x86)\nodejs”(被覆盖)
我已经想不出它可能是什么了,
最佳答案
如果您使用看起来像您的 npm,则使用全局标志(以管理员身份运行)
npm install -g bower
关于npm - 使用 npm 全局安装 Bower,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37571717/