{
"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'未被识别为内部或外部命令,
可操作程序或批处理文件。
错误的ERR!代码ELIFECYCLE
错误的ERR! errno 1
答案 0 :(得分:1)
在检查了所有可能性后,我们必须使用交叉env依赖项。
所以安装npm install cross-env --save-dev
和package.json
"开始":" cross-env-shell DEBUG = True HOST = dev.example.com gulp server"