I want to install node to run Angular2 program, but while installing I am getting this error:
npm WARN npm npm does not support Node.js v0.10.25
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN using --force I sure hope you know what you are doing.
/usr/local/lib/node_modules/npm/lib/cache.js:3
const BB = require('bluebird')
^^^^^
npm ERR! Use of const in strict mode.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/swapnily/.npm/_logs/2017-07-04T10_51_42_147Z-debug.log
I've already tried this solution:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
but even for first command "sudo npm cache clean -f" I am getting same issue. Please let me know if anyone aware about same.