node.js - -bash: nvm: command not found -


when install nvm using command wget or curl(os x ei capitan 10.11.4),the console prints

 => nvm installed in /users/weichuang/.nvm, trying update using git  =>  => source string in /users/weichuang/.bashrc npm err! error in /usr/local/lib/node_modules/love: enotdir: not directory, open '/usr/local/lib/node_modules/love/package.json' npm err! missing: npmlog@, required npm-registry-client@7.0.7 npm err! missing: prompt@^0.2.14, required react-native-cli@0.1.4 => have modules installed globally `npm`. these no => longer linked active version of node when install new node => `nvm`; , may (depending on how construct `$path`) => override binaries of modules installed `nvm`:  /usr/local/lib ├── commander@2.9.0 ├── cordova@5.3.3 ├── download-cli@1.0.1 ├── express@4.13.3 ├── express-generator@4.13.1 ├── forever@0.14.1 ├── hexo@3.1.1 ├── http-server@0.8.5 ├── ionic@1.7.14 ├── ios-deploy@1.8.2 ├── ios-sim@5.0.3 ├── jsonstream@1.0.6 ├── koa@1.1.2 ├──  error: enotdir: not directory, open '/usr/local/lib/node_modules/love/package.json ├── marked@0.3.5 ├── n@2.0.2 ├── node-gyp@3.2.0 ├── nw@0.12.3 ├── nw-gyp@0.12.4 ├── react-native-cli@0.1.4 ├── react-tools@0.13.3 ├── remem@1.0.3 -> /users/weichuang/desktop/rem/remem ├── showdown@1.2.3 ├── supervisor@0.6.0 └── typescript@1.6.2  => if wish uninstall them @ later point (or re-install them under => `nvm` nodes), can remove them system node follows:       $ nvm use system      $ npm uninstall -g a_module  => close , reopen terminal start using nvm 

though close , reopen terminal start using nvm,the problem still -bash: nvm: command not found

type in terminal

  source ~/.nvm/nvm.sh   source ~/.profile   source ~/.bashrc 

Comments