草庐IT

npm-debug

全部标签

javascript - 如何让 npm 包 bin 使用实验模块选项运行?

从Nodev8.5.0开始,支持ES6风格的模块importxfrom'x'已通过使用选项--experimental-modules运行Node获得,如下:node--experimental-modulestest.mjs使用package.json中的bin键,您可以轻松创建cli工具npmcli,通过运行npm链接。不幸的是,当以这种方式运行时,调用node时没有可选的--experimental-modules标志。如何将bin模块与--experimental-modules一起使用?这是一个例子bin/healthcheck.mjsimport{connect}from'

javascript - 如何让 npm 包 bin 使用实验模块选项运行?

从Nodev8.5.0开始,支持ES6风格的模块importxfrom'x'已通过使用选项--experimental-modules运行Node获得,如下:node--experimental-modulestest.mjs使用package.json中的bin键,您可以轻松创建cli工具npmcli,通过运行npm链接。不幸的是,当以这种方式运行时,调用node时没有可选的--experimental-modules标志。如何将bin模块与--experimental-modules一起使用?这是一个例子bin/healthcheck.mjsimport{connect}from'

node.js - npm 完全不起作用 : "Error: Cannot find module ' isarray'"

所以每次我尝试使用任何npm命令时都会遇到相同的错误:module.js:472throwerr;^Error:Cannotfindmodule'isarray'atFunction.Module._resolveFilename(module.js:470:15)atFunction.Module._load(module.js:418:25)atModule.require(module.js:498:17)atrequire(internal/module.js:20:19)atObject.(/usr/local/lib/node_modules/npm/node_module

node.js - npm 完全不起作用 : "Error: Cannot find module ' isarray'"

所以每次我尝试使用任何npm命令时都会遇到相同的错误:module.js:472throwerr;^Error:Cannotfindmodule'isarray'atFunction.Module._resolveFilename(module.js:470:15)atFunction.Module._load(module.js:418:25)atModule.require(module.js:498:17)atrequire(internal/module.js:20:19)atObject.(/usr/local/lib/node_modules/npm/node_module

node.js - 如何解决 npm install 中的 peerinvalid 错误?

我正在尝试按照步骤为PhysicsJS(https://github.com/wellcaffeinated/PhysicsJS#contributing)做出贡献,但在npminstall期间出现以下错误。npmERR!peerinvalidThepackagegrunt-contrib-jasminedoesnotsatisfyitssiblings'peerDependenciesrequirements!npmERR!peerinvalidPeergrunt-template-jasmine-requirejs@0.1.10wantsgrunt-contrib-jasmine@

node.js - 如何解决 npm install 中的 peerinvalid 错误?

我正在尝试按照步骤为PhysicsJS(https://github.com/wellcaffeinated/PhysicsJS#contributing)做出贡献,但在npminstall期间出现以下错误。npmERR!peerinvalidThepackagegrunt-contrib-jasminedoesnotsatisfyitssiblings'peerDependenciesrequirements!npmERR!peerinvalidPeergrunt-template-jasmine-requirejs@0.1.10wantsgrunt-contrib-jasmine@

node.js - Npm 对等依赖错误

我使用npminstall命令反复收到npmpeer依赖错误。这是我的package.json,我对react和webpack有未满足的对等依赖npmWARNreact-datepicker@0.25.0requiresapeerofreact@^0.14.0butnonewasinstalled.npmWARNbabel-loader@6.2.4requiresapeerofwebpack@1||^2.1.0-betabutnonewasinstalled.npmWARNdesktop-react@1.0.0Norepositoryfield.npmWARNdesktop-react

node.js - Npm 对等依赖错误

我使用npminstall命令反复收到npmpeer依赖错误。这是我的package.json,我对react和webpack有未满足的对等依赖npmWARNreact-datepicker@0.25.0requiresapeerofreact@^0.14.0butnonewasinstalled.npmWARNbabel-loader@6.2.4requiresapeerofwebpack@1||^2.1.0-betabutnonewasinstalled.npmWARNdesktop-react@1.0.0Norepositoryfield.npmWARNdesktop-react

debugging - 如何在 Meteor 的服务器端调试和记录自己的代码?

没关系。这不起作用的原因:我忘记了meteorreset所以debugger没有机会停止。呵呵!更多信息:我正在使用MasonChang对相关问题的回答中的方法,而不是kill-sUSR1[proc_id](我可以在其中看到脚本,但无法在startup()函数中停止。)。另外,我正在使用陨石。我正在尝试调试Meteor.startup(function())Meteor服务器端的代码(即,在/server下)与Node检查器,我已阅读此question,并按照更改run.js的答案,但不知何故,我自己的启动功能脚本没有出现在Chrome的脚本部分中。如何在此处查看我的代码并设置断点并在

debugging - 如何在 Meteor 的服务器端调试和记录自己的代码?

没关系。这不起作用的原因:我忘记了meteorreset所以debugger没有机会停止。呵呵!更多信息:我正在使用MasonChang对相关问题的回答中的方法,而不是kill-sUSR1[proc_id](我可以在其中看到脚本,但无法在startup()函数中停止。)。另外,我正在使用陨石。我正在尝试调试Meteor.startup(function())Meteor服务器端的代码(即,在/server下)与Node检查器,我已阅读此question,并按照更改run.js的答案,但不知何故,我自己的启动功能脚本没有出现在Chrome的脚本部分中。如何在此处查看我的代码并设置断点并在