当前位置 : 主页 > 网页制作 > Nodejs >

node.js – 节点6调试器窗口 – 尝试复制OSX应用程序图标以自定义电子预建的错误

来源:互联网 收集:自由互联 发布时间:2021-06-16
我刚刚更新到Node v6(从他们的网站安装了最新的win可执行文件),显然我在项目中看不到再使用“调试器”了 Error: Cannot find module ‘C:\Dev\myNodeProject\debugger’ 我试图安装这个包,但后来我遇
我刚刚更新到Node v6(从他们的网站安装了最新的win可执行文件),显然我在项目中看不到再使用“调试器”了

Error: Cannot find module ‘C:\Dev\myNodeProject\debugger’

我试图安装这个包,但后来我遇到了错误

npm install debugger –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.

那么这真的是我应该报告的错误,还是我错过了一些微不足道的东西?该错误提到了OSX,但显然我没有运行那个……

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

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

但是,我遇到了一个模块节点检查,它完全适合我,并且服务于我正在寻找的目的.

npm install node-inspect

然后像使用它一样

node inspect my-script.js

有关更多详细信息,请参阅npm official sites

网友评论