node.js - How to remove node version 0.12 from Ubuntu? -


i had installed node js 0.12 getting harmony features. on project development, using nvm can have multiple node versions. have made default version 0.10.34. , whenever type command:

node --version 

i getting version 0.10.34. fine.

but on installing of packages node-inspector, following warning coming , debugger not working on installing.

engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.3","npm":"2.9.1"}) 

the debugger gives error like:

error: cannot find module '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.4/node-v11-linux-x64/debug.node' runtime.getproperties failed. referenceerror: frame_index not defined 

according npm installer, version still 0.12. have searched lot remove version cannot find working solution.

execute

sudo apt-get remove nodejs 

to uninstall 0.12.x version of nodejs. if experience mine on ubuntu 14.04,that uninstalled npm.

the script got using curl added file /etc/apt/sources.list.d/nodesource.list

remove file

sudo rm /etc/apt/sources.list.d/nodesource.list 

then execute

sudo apt-get install nodejs 

it install node 0.10.x.

you need re-create soft link if plan type

node

from command line.

ln -s /usr/bin/nodejs /usr/bin/node 

finally, re-install npm

sudo apt-get install npm 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -