I have git bash open and I type in npm install
and then it returns:
bash: npm command not found
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?
To use Node. JS and NPM, you need to use a suitable command-line tool like the Windows Command Prompt (CMD), PowerShell or the GIT Bash Command-Line Tool.
On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.
Just download it at http://nodejs.org and run the installer. * You can install any nodejs module except native one(like `buffertools`). Fortunately, swixweb doesn't depend on any native modules. * You can use `node/npm` commands on the previously installed `git-bash` prompt.
In our case, the solution was simply to close the Git bash window and re-open it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With