- 我已经在我的系统上安装了 Node.js。 (Windows 7的)。
- 我已将环境路径变量设置为
"C:\Users\pUser\AppData\Roaming\npm\node_modules\npm"
.
- users 文件夹中有一个 .npmrc 文件。其中为 https_proxy、proxy、registry 设置了值。
我尝试检查节点版本和 npm 版本,如下所示:
A。 D:\Pooja Project\project-sd-develop-12>node -v
输出-->v6.9.4
-
b. D:\Pooja Project\project-sd-develop-12>npm -v (不显示任何结果)
It doesn't respond at all for npm command.Neither any output nor any error.
( It is not even showing any success or error message.)
The screen shot attached npm command gets stuck no futher result or any error
Am I missing any step?
您设置了错误的环境路径。
它应该是:
C:\Users\pUser\AppData\Roaming\npm
not the npm
inside node_modules
如果您仍然面临同样的问题。
通过跑步where npm
您将获得 npm 文件夹的所有路径。然后从系统中卸载 Node js,并尽可能删除 npm 文件夹。新安装的节点js。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)