Когда я устанавливаю nvm с помощью команды wget или curl (OS X El Capitan 10.11.4), консоль печатает
=> nvm is already installed in /Users/weichuang/.nvm, trying to update using git => => Source string already in /Users/weichuang/.bashrc npm ERR! error in /usr/local/lib/node_modules/love: ENOTDIR: not a directory, open '/usr/local/lib/node_modules/love/package.json' npm ERR! missing: npmlog@, required by [email protected] npm ERR! missing: prompt@^0.2.14, required by [email protected] => You currently have modules installed globally with `npm`. These will no => longer be linked to the active version of Node when you install a new node => with `nvm`; and they may (depending on how you construct your `$PATH`) => override the binaries of modules installed with `nvm`: /usr/local/lib ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── error: ENOTDIR: not a directory, open '/usr/local/lib/node_modules/love/package.json ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] -> /Users/weichuang/Desktop/rem/remem ├── [email protected] ├── [email protected] └── [email protected] => If you wish to uninstall them at a later point (or re-install them under your => `nvm` Nodes), you can remove them from the system Node as follows: $ nvm use system $ npm uninstall -g a_module => Close and reopen your terminal to start using nvm
Хотя я закрываю и снова открываю свой терминал, чтобы начать использовать nvm, проблема все еще -bash: nvm: command not found