如何解决我们不能同时安装nvm和npm吗?
我安装了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
?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。