Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SyntaxError: invalid syntax" when doing nvm build #1155

Closed
happy-dev opened this issue Jul 12, 2016 · 2 comments
Closed

"SyntaxError: invalid syntax" when doing nvm build #1155

happy-dev opened this issue Jul 12, 2016 · 2 comments
Labels
installing nvm Problems installing nvm itself non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated.

Comments

@happy-dev
Copy link

Hi guys,

I installed NVM doing:

npm install -g nvm

Then, I issued :

nvm download 0.5.0

The 0.5.0 version downloaded just fine.
And now I need to build it :

nvm build 0.5.0 

And this is what I get back.

Configuring...   File "/root/.nvm/node-v0.5.0/configure", line 4
    if [ ! -z "`echo $CC | grep ccache`" ]; then
         ^
SyntaxError: invalid syntax

Would anyone know why ?

@ljharb
Copy link
Member

ljharb commented Jul 12, 2016

@happy-dev yes - the nvm on npm is both not the proper one and is also broken (see #304).

Please npm uninstall -g nvm and then install it with the curl command in the readme of this repo.

@ljharb ljharb closed this as completed Jul 12, 2016
@ljharb ljharb added non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. installing nvm Problems installing nvm itself labels Jul 12, 2016
@happy-dev
Copy link
Author

@ljharb : You rock, Many thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing nvm Problems installing nvm itself non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated.
Projects
None yet
Development

No branches or pull requests

2 participants