Windows平台 vscode运行调试问题
Windows平台 vscode运行调试会提示
'babel-node' 不是内部或外部命令,也不是可运行的程序或批处理文件。
package.json如下
{ "name": "koa-learn-2", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": { "koa": "^2.11.0", "koa-body": "^4.1.1", "koa-combine-routers": "^4.0.2", "koa-helmet": "^5.2.0", "koa-json": "^2.0.2", "koa-router": "^7.4.0", "koa-static": "^5.0.0" }, "devDependencies": { "@babel/core": "^7.7.7", "@babel/node": "^7.7.7", "@babel/preset-env": "^7.7.7", "@babel/register": "^7.7.7", "babel-loader": "^8.0.6", "clean-webpack-plugin": "^3.0.0", "cross-env": "^6.0.3", "nodemon": "^1.19.1", "webpack": "^4.41.4", "webpack-cli": "^3.3.10", "webpack-node-externals": "^1.7.2" }, "scripts": { "start": "nodemon --exec babel-node src/index.js", "webpack:degbug": "node --inspect-brk ./node_modules/webpack/bin/webpack.js --inline --progress" }, "keywords": [], "author": "", "license": "ISC" }
61
收起
正在回答 回答被采纳积分+1
2回答
qq_潇生落雨_0
2020-01-09 09:00:57
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星