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

'NODE_ENV' 不是内部或外部命令,也不是可运行的程序 或批处理文件 #14

Open
lunaticnotcrazy opened this issue Oct 18, 2018 · 2 comments

Comments

@lunaticnotcrazy
Copy link

环境 window powershell
直接执行 node .\bin\www 正常 mongodb 链接正常
但是 执行 npm run local 就是报错
image
定位到连 .\bin\www 文件都没进去 感觉是 指令的问题
NODE_ENV=localhost node ./bin/www
这种操作在powershell中不被支持,在cmd中也不被支持,这是Mac中bash或Linux的shell中的独特操作
需要写成
set NODE_ENV=localhost && node ./bin/www

@zhiweiyous
Copy link

我的也是这样的问题 前端 没问题 后端 问题就大了 怎么解决?

@1414044032
Copy link

我的也是这样的问题 前端 没问题 后端 问题就大了 怎么解决?

人家不是都告诉你了么:
这样写
``set NODE_ENV=localhost && node ./bin/www

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

No branches or pull requests

3 participants