• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

nvm 설치안되요 ㅠㅠ

21.02.02 21:13 작성 조회수 411

1

말씀해주신것과 질문들을 많이 찾아보았으나 되지않습니다 ㅠㅠ
bashrc 파일과 bash_profile 등 두개 다 설정도 해보고

여전히  cmd 나 bash 나 nvm을 인식하지못하네요..

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash 하면 아래와같이되는데 어떻게하는걸까요 ??

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 13527  100 13527    0     0  12230      0  0:00:01  0:00:01 --:--:-- 12241

=> nvm is already installed in /c/Users/powey/.nvm, trying to update using git

=> error: invalid path 'test/fast/Aliases/"nvm alias" should not accept aliases with slashes'

=> Compressing and cleaning up git repository

=> nvm source string already in /c/Users/powey/.bashrc

=> bash_completion source string already in /c/Users/powey/.bashrc

main: line 397: /c/Users/powey/.nvm/nvm.sh: No such file or directory

npm ERR! peer dep missing: vue@3.0.5, required by @vue/compiler-sfc@3.0.5

=> 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`:

C:\Users\powey\AppData\Roaming\npm

+-- @vue/cli@4.5.11

+-- express-generator@4.16.1

`-- yarn@1.22.10

=> 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

답변 1

답변을 작성해보세요.

0

안녕하세요 nwbs님, 본문에 첨부해주신 로그 끝 부분 보시면 프로필에 import  하는 코드가 있는데 그거 까지 다 추가해주신건가요? curl로 설치하시고 나서 nvm 커맨드를 터미널에서 인식할 수 있게 추가적으로 설정해 주셔야 합니다. 아래 링크 따라서 한번 확인해 보세요 :)

https://github.com/nvm-sh/nvm#installing-and-updating