节点6调试器Windows-错误试图复制OSX应用图标以自定义电子预构建



我刚刚更新为节点V6(从他们的网站上安装了最新的win可执行文件),显然我看不到我的项目中使用"调试器"

错误:找不到模块'c: dev mynodeproject debugger'

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

npm安装调试器-Save

electron-prebuilt@1.0.2 postinstall C:DevmyNodeProjectnode_moduleselectron-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:DevmyNodeProjectnode_modulesdebugger
> 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.

所以这真的是我应该报告的错误,还是我错过了一些琐碎的东西?错误提到了OSX,但显然我没有运行...

i在Fedora-21上与Node v7.8.0和NPM'4.2.0'有类似的问题。

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

但是,我遇到了一个模块node-inspect,该模块对我来说非常有用,并且服务于我要寻找的目的。

npm install node-inspect

,然后像

一样使用它
node inspect my-script.js

有关更多详细信息,您可以参考NPM官方网站

最新更新