I am trying to install the right version of node.js and npm on an Elastic Beanstalk server. Strangely,
sudo n latest
returns this result:
install : node-v7.9.0
mkdir : /usr/local/n/versions/node/7.9.0
fetch : https://nodejs.org/dist/v7.9.0/node-v7.9.0-linux-x64.tar.gz ######################## 100.0%
installed : v0.10.48
Here, installed returns a version different from install. So when I run node -v it returns v7.9.0, but when I run npm run prod (the actually important step), it says npm does not support Node.js v0.10.48 and throws a whole bunch of errors. What gives?
via mhong19414
No comments:
Post a Comment