npm install -g npm ERR! addLocal Failed to install C: \ Users \ Abc npm ...">

Npm ERR! Unable to read null property "path"

** C: \ Users \ Abc> npm install -g

npm ERR! addLocal Failed to install C: \ Users \ Abc

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C: \ Program Files \ nodejs \ node.exe" "C: \ Users \ Abc \ AppData \ Ro aming \ npm \ node_modules \ npm \ bin \ npm-cli.js" "install" "-g"

npm ERR! node v7.2.1

npm ERR! npm v4.0.5

npm ERR! Unable to read path property null

npm ERR!

npm ERR! If you need help, you can report this error:

npm ERR! https://github.com/npm/npm/issues

npm ERR! Please add the following file with any support request:

npm ERR! C: \ Users \ Abc \ NPM-debug.log **

i reinstall node with version 7.2.1 after every time this happens when i download any package

,

+4
3

gulp NPM Node :

  • node v7.7.4
  • npm v4.1.2

npm 4x https , . github. , :

 npm config set strict-ssl false

,

npm install gulp -g

!

+2

npm .

:

package.json .

, .

:

https://docs.npmjs.com/cli/install.

-g ( , ).

0

If you work for a proxy, you need to install a proxy for nodejs

npm config set proxy http://proxy_host:port 
npm config set https-proxy http://proxy_host:port

Hope this helps ... :)

0
source

Source: https://habr.com/ru/post/1663812/


All Articles