简体   繁体   中英

How to uninstall obsolete version of node.js from Ubuntu?

I have two versions of node.js installed on my Ubuntu server(Ubuntu 14.04, node.js v0.12.4 and v6.9.2), the version 0.12.4 was installed through downloaded archive file and the version 6.9.2 was installed through apt-get by following this . However whenever I run npm test command for my project, it can't find version 6.9.2 node.js(which needs node version >= 6.xx), what should I do to uninstall the obsolete version 0.12.4 node.js?

I believe nvm could be the solution. BTW, node.js LTS version is currently 6.9.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM