npm ERR! Cannot read property 'path' of null
程序员文章站
2023-09-28 14:49:33
npm ERR! Cannot read property 'path' of null ......
npm错误:
错误信息如下:
$ sudo npm install -g bean-sdk sudo: npm: command not found $ npm install -g bean-sdk npm err! linux 3.13.0-39-generic npm err! argv "/usr/local/bin/node" "/usr/local/bin/bin/npm" "install" "-g" "bean-sdk" npm err! node v4.4.5 npm err! npm v4.0.5 npm err! cannot read property 'path' of null npm err! npm err! if you need help, you may report this error at: npm err! <https://github.com/npm/npm/issues> npm err! please include the following file with any support request: npm err! /home/jadeye/npm-debug.log npm-debug.log https://gist.github.com/jadeye/10f79dbb72a57eef9aef304794bbb94c ### supporting information: - `npm -v` prints: 4.0.5 - `node -v` prints: v4.4.5 - `npm config get registry` prints: https://registry.npmjs.org/ - windows, os x/macos, or linux?: linux
解决方式如下:
registry is empty when i checked using "npm config get" command. i tried npm config set registry=http://registry.npmjs.org/ and it worked for me. node: 6.3.1 npm: 4.2.0
原文链接地址:
推荐阅读
-
npm ERR! Cannot read property 'path' of null
-
js报错 Cannot read property 'getAttribute' of null
-
JavaScript Uncaught TypeError: Cannot read property 'value' of null
-
el-tooltip组件中content使用Vue-i18n报错TypeError: Cannot read property ‘$t‘ of null
-
Extjs4 tabPanel关闭后打开 cannot read property addcls of null
-
Vue引入echarts报错Error in mounted hook: “TypeError: Cannot read property ‘getAttribute‘ of null“
-
js或jquery报错Cannot read property 'length' of undefined(Cannot read property 'rows' of null)
-
echarts js报错 Cannot read property 'getAttribute' of null
-
TypeError: Cannot read property ‘length‘ of null
-
Uncaught TypeError: Cannot read property 'click' of null