npm run dev:server报错 NODE_ENV=development OUTSIDE_WEB=true nodemon ./index.js ‘NODE_ENV’ is not recognized as an internal or external command 代码执行环境不一样,代码在mac环境和Windows环境不兼容 解决: 安装依赖npm i --save-dev cross-env 然后在package.json文件的script对应代码处添加cross-env