收到此错误 npm ERR!构建失败:开发脚本

时间:2021-03-22 08:01:40

标签: node.js npm

我正在运行这个命令 npm run build:dev。低于错误

$ npm run build:dev

<块引用>

@build:dev D:\project
cross-env NODE_ENV=development webpack && node react/scripts/build.dev.js

 'node' is not recognized as an internal or external command,
  operable program or batch file
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! build:dev: `cross-env NODE_ENV=development webpack && node react/scripts/build.dev.js`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the build:dev script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  npm ERR! A complete log of this run can be found in:
  npm ERR! C:\Users\AppData\Roaming\npm-cache\_logs\2021-03-22T07_04_41_953Z-debug.log

使用节点版本:v10.16.0 和 npm 版本:6.9.0

谁能帮我解决这个问题。

0 个答案:

没有答案