node.js - Webpack installation webpack@3.5.5 wanted -
ive been having issues trying install webpack on both ubuntu , debian keep getting following error when "npm install -g webpack ". ive done update , upgrade, ive swapped operating systems between debian , stuck on ubuntu. pretty confused now.
warn engine webpack@3.5.5: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"}) warn engine webpack@3.5.5: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: loaddep:yargs → headers ▐ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ warn engine loader-runner@2.3.0: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (cu loaddep:yargs → resolvewi ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ warn engine enhanced-resolve@3.4.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"}) warn engine uglifyjs-webpack-plugin@0.4.6: wanted: {"node":">=4.3.0 <5.0.0 || >= /usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js > uglifyjs-webpack-plugin@0.4.6 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 operating system or architecture: fseve nts@1.1.2 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! uglifyjs-webpack-plugin@0.4.6 postinstall: `node lib/post_install.js` npm err! spawn enoent npm err! npm err! failed @ uglifyjs-webpack-plugin@0.4.6 postinstall script 'node li b/post_install.js'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem uglifyjs- webpack-plug in package, npm err! not npm itself. npm err! tell author fails on system: npm err! node lib/post_install.js npm err! can information on how open issue project with: npm err! npm bugs uglifyjs-webpack-plugin npm err! or if isn't available, can info via: npm err! npm owner ls uglifyjs-webpack-plugin npm err! there additional logging output above. npm err! please include following file support request: npm err! /root/npm-debug.log npm err! code 1
you using node version 4.2.6 under 4.3. webpack need version of node on 4.3
update node version if possible.
$ sudo apt-get install curl $ curl -sl https://deb.nodesource.com/setup_8.x | sudo -e bash – $ sudo apt-get install -y nodejs or use n library of npm.
Comments
Post a Comment