节点6调试器窗口-尝试复制OSX应用程序图标以自定义电子预制件时出错

Cyr*_*ris 5 debugging node.js npm windows-10 npm-install

我刚刚更新到Node v6(从他们的网站安装了最新的win可执行文件),显然我的项目中再也看不到使用“ debugger”了

错误:找不到模块“ C:\ Dev \ myNodeProject \ debugger”

我尝试安装此软件包,但随后遇到错误

npm安装调试器--save

electron-prebuilt@1.0.2 postinstall C:\Dev\myNodeProject\node_modules\electron-prebuilt
> node install.js

Downloading electron-v1.0.2-win32-x64.zip
[============================================>] 100.0% of 49.69 MB (407.27 kB/s)

> debugger@0.35.0 postinstall C:\Dev\myNodeProject\node_modules\debugger
> node bin/postinstall.js

Error trying to copy the OSX app icon to customize electron-prebuilt
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "debugger" "--save"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE

npm ERR! debugger@0.35.0 postinstall: `node bin/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the debugger@0.35.0 postinstall script 'node bin/postinstall.js'.
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 debugger package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node bin/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs debugger
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls debugger
npm ERR! There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)

那么,这真的是我应该报告的错误,还是我错过了一些琐碎的事情?该错误提到了OSX,但显然我没有运行它。

MaN*_*KuR 0

v7.8.0我在 Fedora-21 上的节点和 npm '4.2.0' 上遇到了类似的问题。

调查了大约一个小时以获取解决问题的线索,但没有多大帮助。

然而,我遇到了一个node-inspect非常适合我并达到我正在寻找的目的的模块。

npm install node-inspect
Run Code Online (Sandbox Code Playgroud)

然后像这样使用它

node inspect my-script.js
Run Code Online (Sandbox Code Playgroud)

更详细的内容可以参考npm官方网站