Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 为什么babel节点调试无法识别导入命令?_Node.js_Debugging_Babeljs_Node Inspector - Fatal编程技术网

Node.js 为什么babel节点调试无法识别导入命令?

Node.js 为什么babel节点调试无法识别导入命令?,node.js,debugging,babeljs,node-inspector,Node.js,Debugging,Babeljs,Node Inspector,我认为它使用的node inspector v0.12.10是它的一部分,但我不确定是否有任何建议?您是否有必要使用不再受支持的babel node debug。可以使用节点检查器 求你了!通过这个链接-。希望有用,谢谢 安装: » babel-node-debug --presets es2015 ./updateChains.js Node Inspector v0.12.10 Visit http://127.0.0.1:8080/?port=5858 to start debugging

我认为它使用的node inspector v0.12.10是它的一部分,但我不确定是否有任何建议?

您是否有必要使用不再受支持的
babel node debug
。可以使用节点检查器

求你了!通过这个链接-。希望有用,谢谢

安装:

» babel-node-debug --presets es2015 ./updateChains.js
Node Inspector v0.12.10
Visit http://127.0.0.1:8080/?port=5858 to start debugging.
Debugging `./scripts/updateChains.js`

Debugger listening on [::]:5858
/mysite/updateChains.js:1
(function (exports, require, module, __filename, __dirname) { import dotenv from 'dotenv';
开始:

npm install -g node-inspector
尝试npm安装--保存babel-preset-node6,然后--预设node6
node-debug app.js