我正在窗口环境中开发express.js。我已经成功启动了我的项目npm start。现在我需要在package.json文件中添加调试语句以启用调试。
像这样:
"scripts": {
"start": "DEBUG=fibonacci:* node ./bin/www"
}
Run Code Online (Sandbox Code Playgroud)
在我编辑命令后,package.json我npm start遇到错误:
Error: Debug is not an internal or external command
Run Code Online (Sandbox Code Playgroud)
注意:我正在关注 Node.js 书,并且在书中它执行成功。