npm - 系统找不到指定的路径 [英] npm - The system cannot find the path specified

查看:326
本文介绍了npm - 系统找不到指定的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 nodejs.当我尝试通过 power shell 或 cmd 使用 npm 时,它返回

I have installed nodejs. When I try and use npm via power shell or cmd it returns

系统找不到指定的路径.

The system cannot find the path specified.

如果我运行 node -v 一切正常.我也可以通过 nodejs 控制台使用 npm 就好了.我多次尝试卸载并重新安装 nodejs,但没有帮助.

If I run node -v everything works fine. I can use npm via the nodejs console just fine as well. I've tried uninstalling and reinstalling nodejs multiple times and it didn't help.

对导致这种情况的原因有什么想法吗?

Any ideas on what is causing this?

推荐答案

对于遇到此问题的任何人,尝试调试此错误以了解为什么 npm run

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆