简体   繁体   English

节点检查器安装失败:npm ERR! 无法读取未定义的属性“暂停”

[英]node-inspector installation failure: npm ERR! Cannot read property 'pause' of undefined

installing node-inspector fails under npm 5.3.0 在npm 5.3.0下安装node-inspector失败

eric@mouni2:~$ sudo npm install -g node-inspector
> v8-profiler@5.7.0 preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
> node -e 'process.exit(0)'

npm ERR! Cannot read property 'pause' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/eric/.npm/_logs/2017-09-24T09_34_28_089Z-debug.log

This may be related to npm ERR! 这可能与npm ERR有关! Cannot read property 'pause' of undefined --Bluemix . 无法读取未定义的--Bluemix的属性“ pause”

Per the thread around npm issue 16677 , you can apparently remove ~/.npm , though npm cache verify (no root access necessary) seemed more elegant: 对于npm问题16677周围的线程,您显然可以删除~/.npm ,尽管npm cache verify (无需root访问权限)看起来更优雅:

eric@mouni2:~$ npm cache verify
Cache verified and compressed (~/.npm/_cacache):
Content verified: 1077 (29065069 bytes)
Content garbage-collected: 15 (201214 bytes)
Index entries: 1442
Finished in 1.482s
eric@mouni2:~$ sudo npm install -g node-inspector
/usr/local/bin/node-inspector -> /usr/local/lib/node_modules/node-inspector/bin/inspector.js
/usr/local/bin/node-debug -> /usr/local/lib/node_modules/node-inspector/bin/node-debug.js
+ node-inspector@1.1.1
updated 1 package in 9.692s

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM