简体   繁体   中英

nodejs: installing stable (0.12.7) with nvm fails

$ nvm install stable
######################################################################## 100.0%
mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.
######################################################################## 100.0%
  File "./configure", line 362
    '''
      ^
SyntaxError: Missing parentheses in call to 'print'
nvm: install v0.12.7 failed!

This is on a manjaro linux box, running nvm version 0.20.0.

I tried directly with nvm install v0.12.7 or nvm install 0.12.7 and also nvm install 0.12.6

all reported the same error.

I also tried re-running the nvm installation script, but it told me it already had nvm installed. I am a bit reluctant to delete .nvm and re-install it (for no obvious reason ;) )

I don't know what causes the first problem:

mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.

But then it tries from source and tries to compile, using python. The error :

SyntaxError: Missing parentheses in call to 'print'

is from python - python3. By temporarily changin the symlink in manjaro from /usr/bin/python -> python3 to /usr/bin/python -> python2

I seam to have "solved" the issue....

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM