首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >节点6调试器windows -试图复制OSX应用图标以自定义电子预置的错误

节点6调试器windows -试图复制OSX应用图标以自定义电子预置的错误
EN

Stack Overflow用户
提问于 2016-06-18 13:57:02
回答 1查看 382关注 0票数 6

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

错误:找不到模块‘C:\Dev\myNodeProject\调试器’

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

npm安装调试器--保存

代码语言:javascript
运行
复制
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.

那么,这是我应该报告的一个bug,还是我遗漏了一些琐碎的东西?错误提到OSX,但很明显我没有运行.

EN

回答 1

Stack Overflow用户

发布于 2018-06-06 06:14:08

我在Fedora-21上的节点v7.8.0和NPM4.2.0也有类似的问题。

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

但是,我遇到了一个模块node-inspect,它非常适合我,并且达到了我想要的目的。

代码语言:javascript
运行
复制
npm install node-inspect

然后把它当作

代码语言:javascript
运行
复制
node inspect my-script.js

有关更多细节,请参考国家预防机制官方网站

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37897774

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档