Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后台启动报错,是什么原因呢 #2

Closed
Sheila6566 opened this issue Aug 2, 2017 · 4 comments · May be fixed by #39
Closed

后台启动报错,是什么原因呢 #2

Sheila6566 opened this issue Aug 2, 2017 · 4 comments · May be fixed by #39

Comments

@Sheila6566
Copy link

No description provided.

@zhengguorong
Copy link
Owner

你贴个错误信息给我看看

@Sheila6566
Copy link
Author

$ npm run local

[email protected] local F:\masker\h5maker-master
NODE_ENV=localhost node ./bin/www

'NODE_ENV' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run" "local"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] local: NODE_ENV=localhost node ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] local script 'NODE_ENV=localhost node ./bin /www'.

@wesdint
Copy link
Collaborator

wesdint commented Aug 8, 2017

应该是平台兼容问题,你用的是windows吧,package.json的scripts配置加个‘set’,改成: "local": "set NODE_ENV=localhost&&node ./bin/www"

@Sheila6566
Copy link
Author

是的,加set可以启动了,赞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants