问答详情
源自:2-1 vue-loader+webpack项目配置

build 运行失败

E:\vscode\node>npm run build


> node@1.0.0 build E:\vscode\node

> cross-env NODE_ENV=production webpack --config webpack.config.js


'cross-env' 不是内部或外部命令,也不是可运行的程序

或批处理文件。

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! node@1.0.0 build: `cross-env NODE_ENV=production webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the node@1.0.0 build 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\Administrator\AppData\Roaming\npm-cache\_logs\2019-05-20T02_08_46_470Z-debug.log


提问者:qq_高_11 2019-05-20 10:11

个回答

  • 奇点先生
    2019-05-20 17:26:18

    我估计是你文件件名字node的问题,你试试改个名字。