为什么npm install在git bash上不起作用 [英] How come npm install doesn't work on git bash
本文介绍了为什么npm install在git bash上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我打开git bash并输入npm install
,然后返回:
I have git bash open and I type in npm install
and then it returns:
bash: npm command not found
我不明白,因为我有node.js
命令提示符,当我键入npm -v
时,它将返回3.7.3
.为什么它在git中不起作用?
I don't understand, because I have node.js
command prompt and when I type in npm -v
then it returns 3.7.3
. How come it doesn't work in git?
推荐答案
在我们的例子中,解决方案就是关闭Git bash窗口然后重新打开.
In our case, the solution was simply to close the Git bash window and re-open it.
这篇关于为什么npm install在git bash上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文