We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
环境 window powershell 直接执行 node .\bin\www 正常 mongodb 链接正常 但是 执行 npm run local 就是报错 定位到连 .\bin\www 文件都没进去 感觉是 指令的问题 NODE_ENV=localhost node ./bin/www 这种操作在powershell中不被支持,在cmd中也不被支持,这是Mac中bash或Linux的shell中的独特操作 需要写成 set NODE_ENV=localhost && node ./bin/www
The text was updated successfully, but these errors were encountered:
我的也是这样的问题 前端 没问题 后端 问题就大了 怎么解决?
Sorry, something went wrong.
人家不是都告诉你了么: 这样写 ``set NODE_ENV=localhost && node ./bin/www
No branches or pull requests
环境 window powershell
![image](https://user-images.githubusercontent.com/21071051/47134696-39430180-d2e0-11e8-8f12-1cb7d3ee6db3.png)
直接执行 node .\bin\www 正常 mongodb 链接正常
但是 执行 npm run local 就是报错
定位到连 .\bin\www 文件都没进去 感觉是 指令的问题
NODE_ENV=localhost node ./bin/www
这种操作在powershell中不被支持,在cmd中也不被支持,这是Mac中bash或Linux的shell中的独特操作
需要写成
set NODE_ENV=localhost && node ./bin/www
The text was updated successfully, but these errors were encountered: