• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

nvm 설치가 안되요..ㅠㅜ

20.02.12 02:15 작성 조회수 609

3

nvm is already installed in /c/Users/chang/.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/chang/.bashrc

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

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

=> 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\chang\AppData\Roaming\npm

답변 9

·

답변을 작성해보세요.

1

이종윤님의 프로필

이종윤

2020.09.26

저도 마찬가지 오류가 나면서 진도가 안나가네요ㅠㅠ

1

jij5247님의 프로필

jij5247

2020.05.05

.bashrc에 export를 적은 뒤 터미널에서 source ~/.bashrc 를 하시면 될 것 같아요

1

그냥 윈도 설치버전 .exe 으로 했습니다...

1

예..다시 한번 했는데도 여전히 안되네요.. nvm 명령어가 안먹어요...

1

예 nvm -v 가 안되네요... 상관 없는 건가요?

1

안녕하세요 달마다서쪽님, 위 로그 "nvm is already installed in /c/Users/chang/.nvm" 를 보면 nvm이 설치되어 있는 것으로 나오는데 nvm 명령어가 안먹어서 설치가 안되는 것으로 생각하신 건가요? :)

0

minsu.kim님의 프로필

minsu.kim

2021.12.28

안녕하세요.

NVM설치시 아래 명령어를 입력했을때 아래와 같이 뜹니다.

어떻게 해결해야할까요?

$ vi ~/.bash_profile

 

E325: ATTENTION

Found a swap file by the name "~/.bash_profile.swp"

          owned by: minsukim   dated: Tue Dec 28 12:17:39 2021

         file name: ~minsukim/.bash_profile

          modified: YES

         user name: minsukim   host name: MINs-MacBook-Pro-4.local

        process ID: 82785

While opening file "/Users/minsukim/.bash_profile"

      CANNOT BE FOUND

(1) Another program may be editing the same file.  If this is the case,

    be careful not to end up with two different instances of the same

    file when making changes.  Quit, or continue with caution.

(2) An edit session for this file crashed.

    If this is the case, use ":recover" or "vim -r /Users/minsukim/.bash_profile

"

    to recover the changes (see ":help recovery").

    If you did this already, delete the swap file "/Users/minsukim/.bash_profile

.swp"

    to avoid this message.

 

Swap file "~/.bash_profile.swp" already exists!

[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort: 

0

gayoung lee님의 프로필

gayoung lee

2021.09.30

저도 이부분에서 막혀있습니다..윈도우 입니다..ㅠ

0

아 .bashrc 파일에 아래 내용이 잘 저장되었는지 한번 확인해보시겠어요?

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm