这在演示应用程序的package.json文件中:
"scripts": {
"start": "cd public && npm run tsc && cd .. && node ./bin/www",
"debug": "cd public && npm run tsc && cd .. && node-debug ./bin/www",
"tsc": "cd public && npm run tsc",
"tsc:w": "cd public && npm run tsc:w",
"express": "node ./bin/www",
"express-debug": "node-debug ./bin/www",
"postinstall": "cd public && npm install"
},
问题1,我做npm run postinstall
的时候很好,但是npm run debug
得到了'node-debug'被识别为内部或外部命令。
问题2,如何将该条目转换为launch.json文件?
"debug": "cd public && npm run tsc && cd .. && node-debug ./bin/www"