This question already has an answer here:
这个问题在这里已有答案:
- 'git' is not recognized as an internal or external command 19 answers
- 'git'不被认为是内部或外部命令19个答案
There is some problem with my npm package. My node is perfectly installed. I checked through node -v
cmd immediately spits out the version, but when I npm -v
I get the following error
我的npm包有一些问题。我的节点已完美安装。我检查了节点-v cmd立即吐出版本,但是当我npm -v时出现以下错误
However, I thought it won't be a problem for installing packages. But I was wrong I get the following error. Please see the error log below
但是,我认为安装包不会有问题。但我错了,我得到以下错误。请参阅下面的错误日志
1 个解决方案
#1
0
Your command npm -v
is executed and it returned you the version as 5.6.0.
您的命令npm -v已执行,它返回的版本为5.6.0。
The issue here is of WINDOWS path variable.
这里的问题是WINDOWS路径变量。
It is not related to NPM and can be solve by following detailed steps from here:
它与NPM无关,可以通过以下详细步骤解决:
链接
#1
0
Your command npm -v
is executed and it returned you the version as 5.6.0.
您的命令npm -v已执行,它返回的版本为5.6.0。
The issue here is of WINDOWS path variable.
这里的问题是WINDOWS路径变量。
It is not related to NPM and can be solve by following detailed steps from here:
它与NPM无关,可以通过以下详细步骤解决:
链接