Z
Z
ZaurK2016-11-16 11:11:26
npm
ZaurK, 2016-11-16 11:11:26

What's wrong with npm command?

Hello! I decided to try react.js , I look at this course https://www.gitbook.com/book/maxfarseer/react-cour... I downloaded and installed node.js , and in the console with the command npm install express --save-dev gives the error "npm is not an internal or external command...". Please tell me how to solve the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
UsulPro, 2016-11-23
@UsulPro

Look in the folder where Node is installed, there should be a nodevars.bat file.
Run it before doing anything with Node.
You can make sure that npm is in order with `npm -v` - its version should be released.
Also, you may need to manually set the path to `node_modules\.bin\` to run something installed locally in the project

M
MorozoW, 2016-12-07
@MorozoW

Check if NPM is installed on the system: npm -v - the current version of NPM should be displayed.
If it doesn't work then google.com -> install NPM windows -> blog.teamtreehouse.com/install-node-js-npm-windows - reinstall Node.js making sure NPM is included in the list of installed features.
Good luck!

R
romy4, 2016-11-16
@romy4

it's probably just not in the path
1) restart console
2) find where npm is installed
do ln -s /where/installed/npm /usr/bin/npm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question