작성
·
842
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
1
1
1
1
1
안녕하세요 달마다서쪽님, 위 로그 "nvm is already installed in /c/Users/chang/.nvm" 를 보면 nvm이 설치되어 있는 것으로 나오는데 nvm 명령어가 안먹어서 설치가 안되는 것으로 생각하신 건가요? :)
0
안녕하세요.
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
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