【问题标题】:npm is not recognized as internal or externalnpm 未被识别为内部或外部
【发布时间】:2020-01-09 23:29:19
【问题描述】:

我已经安装了 node js(Windows 7),但它显示 npm 无法识别为内部或外部..我将全局和本地路径设置为 C:\Program Files\nodejs\node_modules\npm 仍然显示相同的错误。

【问题讨论】:

标签: npm-install


【解决方案1】:

在你的 CMD 上键入: where npm 你会看到路径可能是:

C:\Program Files\nodejs

那是你在你的道路上必须拥有的。 您也可以尝试从该路径运行命令...

【讨论】:

  • 已完成,但现在在 cmd 中使用 ng new 创建项目时显示 ng 未被识别为内部或外部
猜你喜欢
  • 2018-10-19
  • 2018-07-13
  • 2019-06-28
  • 2016-11-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-26
相关资源
最近更新 更多