2
UbuntuとDebianの両方にwebpackをインストールしようとすると問題が発生しました。「npm install -g webpack 」を実行すると、次のエラーが表示されます。私はアップデートとアップグレードを行いましたが、IveはDebianとDebianの間でオペレーティングシステムを入れ替えました。かなり混乱しました。Webpackのインストール[email protected]が必要です
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: loadDep:yargs → headers ▐ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (cu loadDep:yargs → resolveWi ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >= /usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
> [email protected] postinstall /usr/local/lib/node_modules/webpack/ node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
sh: 1: node: not found
/usr/local/lib
└── (empty)
npm WARN optional Skipping failed optional dependency /webpack/chokidar/fsevents :
npm WARN notsup Not compatible with your operating system or architecture: fseve [email protected]
npm ERR! Linux 2.6.32-042stab123.9
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "webpack"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `node lib/post_install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node li b/post_install.js'.
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 uglifyjs- webpack-plug in package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node lib/post_install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs uglifyjs-webpack-plugin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls uglifyjs-webpack-plugin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
npm ERR! code 1
ありがとうございました。ありがとう – BKCapri