I tried to install npm in command prompt i got this below error.Can you help me to resolve it.
Asked
Active
Viewed 1,136 times
0

Suraj Rao
- 29,388
- 11
- 94
- 103

shaik inthiyaz ali
- 11
- 2
-
1install python then check if you are still receiving the error – Arpit Solanki Jun 19 '17 at 12:55
-
Possible duplicate of [Running Python on Windows for Node.js dependencies](https://stackoverflow.com/questions/15126050/running-python-on-windows-for-node-js-dependencies) – Peter Reid Jun 19 '17 at 13:03
-
After installation of python am getting below error npm ERR! buffertools@2.1.6 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the buffertools@2.1.6 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the buffertools package, npm ERR! not with npm itself. – shaik inthiyaz ali Jun 20 '17 at 10:27
1 Answers
0
Looks like it could be a couple of things. First, make sure you have Python installed. You can do so by typing python -V
in the command line. A version number should be returned.
If you do, then I would suggest setting your environment variables on your machine. Off the top of my head, you go into the control panel > system > advanced settings, then click environment variables (I suggest searching how to set environment variables to be sure). Then add the path to the location where you installed Python.
Here is a link that does a better job explaining than I do: enter link description here
Another option would be to throw away Windows and start using Linux where "it just works".

User1
- 41
- 1
- 2
- 4