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

doesn't work in remote with nvm #12

Open
Yvem opened this issue Nov 26, 2015 · 6 comments
Open

doesn't work in remote with nvm #12

Yvem opened this issue Nov 26, 2015 · 6 comments

Comments

@Yvem
Copy link

Yvem commented Nov 26, 2015

Running 'npm:install' task...
Installing npm modules.
Running "node -v && cd /home/xyz/work/tmp/shipit-deploy-to/releases/20151126131253 && npm i npm-pkgr -g" on host "localhost".
@localhost-err bash: node: command not found
Error: Command failed: /bin/sh -c ssh xyz@localhost "node -v && cd /home/yej/work/tmp/shipit-deploy-to/releases/20151126131253 && npm i npm-pkgr -g"
bash: node: command not found

should have an option to run nvm use default before running npm

using shipit-nvm doesn't help.

@Yvem Yvem changed the title doesn't work in remote with shipit-nvm doesn't work in remote with nvm Nov 26, 2015
@phaibin
Copy link

phaibin commented Dec 1, 2015

+1

2 similar comments
@pcriv
Copy link

pcriv commented Feb 1, 2016

+1

@kbucksch
Copy link

+1

@delusive
Copy link

delusive commented Jun 6, 2016

I got it going based on this answer:

shipitjs/shipit#117 (comment)

You need to make sure (if your using a .bashrc) that the NVM initialization is above the following in your .bashrc file.

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

@travco
Copy link

travco commented Aug 1, 2016

@Yvem In my opinion this is more of an environment issue than a shipit-npm issue, is delusive's answer satisfactory for you?

I would agree with you if there weren't such a myriad of ways to install node, putting an option to cover all of them might be a heck of a ongoing task.

@ketansp
Copy link

ketansp commented Aug 31, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants