我尝试修改:
*"scripts": {
"start": "node ./bin/www"
}*
因此nodemon可以监视源文件中的更改并重新启动Web服务器。
*"scripts": {
"start": "if [[ SET NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi"
}*
但是,我遇到此错误:
*SET was unexpected at this time.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp@0.0.0 start: `if [[ SET NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi`
npm ERR! Exit status 1*
这是什么意思,我该如何解决?