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

"npm command not found" on ARM arch #496

Open
ghost opened this issue Aug 11, 2014 · 6 comments
Open

"npm command not found" on ARM arch #496

ghost opened this issue Aug 11, 2014 · 6 comments
Labels
installing node Issues with installing node/io.js versions. needs followup We need some info or action from whoever filed this issue/PR. OS: ubuntu shell: zsh

Comments

@ghost
Copy link

ghost commented Aug 11, 2014

Ubuntu 14, node v0.10.3 (arm7), chromebook with crouton.

Nvm installed without issues.

Terminal restarted

nvm use 0.10.3

npm install (anything)

command not found.

Am I missing something?

If node is installed and in my path does that mean that npm is too?

Sorry if this is a dumb question.

Thanks in advance.

@ljharb
Copy link
Member

ljharb commented Aug 11, 2014

What does which node print out? What about which npm? Also please see #394 for Ubuntu issues.

@ghost
Copy link
Author

ghost commented Aug 11, 2014

Appreciate the reply, thanks.

which node returns the version that nvm install installed. i.e as expected.

Which npm returns npm not found.

@ljharb
Copy link
Member

ljharb commented Aug 11, 2014

Can you try nvm install 0.10.30? Version numbers aren't decimals, and 0.10.3 is very different from 0.10.30

@ghost
Copy link
Author

ghost commented Aug 12, 2014

Thanks

Cannot install 0.10.30 (no arm binary in the dist) however have tried 0.10.25 and 0.11.4 which install but problem remains.

I can try 0.10.30 on a nitrous box which runs on intel just to make sure it's not me.

Am I right in assuming that the install script generates the necessary path changes for both node and npm in .zshrc? Or, do I need to do something else?

Should I be seeing symlinks to new directories created by nvm at the system root /usr/bin/something
or
is everything in the home/nvm directory?

@ljharb
Copy link
Member

ljharb commented Aug 12, 2014

Everything is contained in the $NVM_DIR directory. nvm works by modifying your PATH to check in the selected version's bin directory.

nvm install -s 0.10.30 should install from source just fine, fwiw.

What shell are you using?

Please also see #394 - ubuntu seems to have a lot of issues with nvm specifically.

@ghost
Copy link
Author

ghost commented Aug 12, 2014

Thanks for the super prompt replies, it's really appreciated.

Your answer ties in with what i thought was supposed to happen.

I cant find an arm compatible dist here: http://nodejs.org/dist/v0.10.30/

I have tried it and it refuses to install. I'm using an arm7 chip btw.

My shell is zsh.

I've not had any permission errors ref#394.

Now I'm clear on what's supposed to happen I'll carry on trying to find a solution and if it helps others will report back.

Thanks again.

@ljharb ljharb added the needs followup We need some info or action from whoever filed this issue/PR. label Nov 2, 2014
@ljharb ljharb changed the title npm command not found "npm command not found" on ARM arch Nov 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing node Issues with installing node/io.js versions. needs followup We need some info or action from whoever filed this issue/PR. OS: ubuntu shell: zsh
Projects
None yet
Development

No branches or pull requests

1 participant