我安装了npm以进行浏览器同步,现在我想安装带有curl的nvm来安装gatsby。
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
但是它提示:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13527 100 13527 0 0 18892 0 --:--:-- --:--:-- --:--:-- 18866
=> Downloading nvm from git to '/home/himabindu/.nvm'
=> Cloning into '/home/himabindu/.nvm'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (252/252), done.
remote: Total 286 (delta 33), reused 100 (delta 21), pack-reused 0
Receiving objects: 100% (286/286), 146.00 KiB | 390.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
=> Compressing and cleaning up git repository
=> Appending nvm source string to /home/himabindu/.bashrc
=> Appending bash_completion source string to /home/himabindu/.bashrc
=> 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
`-- browser-sync@2.26.12
=> 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 or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
有什么问题,我现在应该怎么办?是否有nvm
和npm
不能同时存在?为什么它会覆盖nvm
?