Command' export'在'npm run build'之后无法识别与webpack

时间:2016-10-21 07:08:51

标签: javascript node.js npm webpack

我们想在我们的项目中使用webpack。它已经部分集成在Mac上作为测试,它的工作原理。 在我的Windows机器上使用相同的分支时,我收到以下错误消息。

Webpack版本是1.12.15

德语中的部分意味着命令' export'无法识别或无法正确写入。

S:\project>npm run build

> project@version build S:\project
> export NODE_ENV=dev && webpack

Der Befehl "export" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\someone\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.4.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! project@version build: `export NODE_ENV=dev && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@version build script 'export NODE_ENV=dev && webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the onedata package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     export NODE_ENV=dev && webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs project
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls project
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     S:\project\npm-debug.log

无法使用最新的node.js,因为其他一些软件包与它不兼容。

0 个答案:

没有答案