SET此时出乎意料

时间:2019-05-22 19:28:14

标签: node.js windows

我尝试修改:

  *"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*

这是什么意思,我该如何解决?

0 个答案:

没有答案