前缀-g'不被识别为内部或外部命令

时间:2020-01-28 10:05:20

标签: node.js angular npm

当我尝试在cmd中使用npm install命令时;我遇到以下错误:

调用“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js“前缀-g'不是 被识别为内部或外部命令,可操作程序或 批处理文件。

有人可以帮助我解决此错误吗?

0 个答案:

没有答案