node.js - Node 6 调试器窗口 - 尝试复制 OSX 应用程序图标以自定义电子预构建时出错

标签 node.js debugging npm windows-10 npm-install

我刚刚更新到 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 上遇到了 Node v7.8.0 和 npm '4.2.0' 的类似问题。

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

但是,我遇到了一个模块 node-inspect,它非常适合我并满足我正在寻找的目的。

npm install node-inspect

然后像这样使用它

node inspect my-script.js

更多详情可以引用npm official sites

关于node.js - Node 6 调试器窗口 - 尝试复制 OSX 应用程序图标以自定义电子预构建时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37897774/

相关文章:

javascript - Google 搜索页面 "next"跨度与 selenium-webdriver 和 nodejs

javascript - promise 拒绝不触发

c# - 调用堆栈中的 "external code"是什么意思?

Javascript 调试 - 脚本适用于硬编码变量,不适用于 getElementById ('id' ).value

node.js - Ionic2 应用程序从 Mac 移至 PC 导致构建问题

node.js - Sequelize .count() 无法返回结果

node.js - Socket.IO 房间不在 Azure 上工作,但在本地工作

c# - 符号已创建,但调试永远不会在断点处停止

mysql - NPM MySql 连接需要在文件中分开

node.js - 从 Heroku 的子目录运行 npm