“NODE_ENV” is not recognized as an internal or external command
2017-08-23 22:06
791 查看
运行nodejs程序时出现NODE_ENV不是内部或外部命令,也不是可运行的程序,或者批处理文件
“NODE_ENV” is not recognized as an internal or external command, operable command or batch file
初始脚本:
"scripts": {
"start": "NODE_ENV=production PORT=3333cs pm2 start dist/index.js",
}
解决办法:在NODE_ENV前面添加 set ,这样问题就被解决了
"scripts": {
"start": "set NODE_ENV=production PORT=3333cs pm2 start dist/index.js",
}
“NODE_ENV” is not recognized as an internal or external command, operable command or batch file
初始脚本:
"scripts": {
"start": "NODE_ENV=production PORT=3333cs pm2 start dist/index.js",
}
解决办法:在NODE_ENV前面添加 set ,这样问题就被解决了
"scripts": {
"start": "set NODE_ENV=production PORT=3333cs pm2 start dist/index.js",
}
相关文章推荐
- 'django-admin.py' is not recognized as an internal or external command
- 'telnet' is not recognized as an internal or external command
- ‘mvn’ is not recognized as an internal or external command, operable program or batch file.
- vs2010 'yasm' is not recognized as an internal or external command
- 解决windows的dos下某些命令例如ping、telnet、more 不是内部或外部命令(is not recognized as an internal or external command)
- 'telnet' is not recognized as an internal or external command
- 'telnet' is not recognized as an internal or external command
- win8下mvn is not recognized as an internal or external command windows 8
- 'cordova' is not recognized as an internal or external command
- 命令行如何编译单独的java文件--javac’is not recognized as an internal or external command
- 'nasm.exe' is not recognized as an internal or external command
- ’javac’ is not recognized as an internal or external command,operable program or batch file.
- Is not recognized as an internal or external command
- 'telnet' is not recognized as an internal or external command 解决办法
- 'DEVENV' is not recognized as an internal or external command,
- 用命令连接mysql , 出现'mysql' is not recognized as an internal or external command错误解决
- 'winrar' is not recognized as an internal or external command, operable program or batch file.
- 用命令连接mysql , 出现'mysql' is not recognized as an internal or external command错误解决
- 'powershell' is not recognized as an internal or external command, operable program or batch file
- 'VBoxManage' is not recognized as an internal or external command, operable program or batch file.