npm在Windows上运行“DEBUG = *”问题
{ "name": "apokidsi", "version": "0.717", "contributors": [ ], "dependencies": { "angular": "1.5.8", "angular-cookies": "1.5.8", "angular-messages": "1.5.8", "angular-ui-router": "1.0.0-beta.3", "debug": "^3.0.0", "flag-icon-css": "2.8.0", "jquery": "3.2.1", "moment": "2.18.1", "moment-timezone": "0.5.13", "node-fetch-npm": "^2.0.1" }, "scripts": { "clean": "gulp clean", "start": "DEBUG=true HOST=localhost:4200 gulp server", } }
这是package.json文件。
当我运行npm run start
我得到这个消息
“DEBUG”不被识别为内部或外部命令,可操作程序或batch file。
npm ERR! 代码ELIFECYCLE
npm ERR! errno 1
在检查了所有可能性之后,我们必须使用cross-env依赖关系。
所以安装npm install cross-env –save-dev
和package.json
“开始”:“cross-env-shell DEBUG = True HOST = dev.example.com gulp server”
- Nodejs进程挂起,我怎么能debugging它或收集转储?
- Visual Studio 2013可以在NodeJs Web应用程序中debugging客户端JavaScript
- 如果path以“./”开头并且nocase:true – 错误或预期,Node glob不匹配任何东西?
- 如何使用debugging器运行javascripttesting; 声明?
- 使用Passport.js的login系统始终执行“failureRedirect”(nodejs)
- 如何debuggingNode.JS子分叉进程?
- 在WebStorm中debugging编译ES6 nodejs应用程序
- Node.js远程debugging不起作用
- NodeJS:是否可以显示调用asynchronous函数的堆栈跟踪?