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

define NPM path which works with node v6. #77

Closed
wants to merge 1 commit into from
Closed

define NPM path which works with node v6. #77

wants to merge 1 commit into from

Conversation

trevoro
Copy link

@trevoro trevoro commented May 25, 2016

See #76

I'm aware this could be wrapped up nicer if npm_execpath is missing or check on node versions, etc.
Would love a comment.

@davepacheco
Copy link
Collaborator

It makes sense why this stops the crash, but I'm not sure it's the right fix. I can't find documentation for npm_execpath, but I'm assuming it's the full path to the npm being used for the install because it may not be the one on the PATH, and it looks like this was needed for #52 and #53. I'm not sure what the right fix is, though.

@trevoro
Copy link
Author

trevoro commented May 26, 2016

You're totally right

As for the npm_execpath it's here but I cant even reproduce the result I was getting earlier. I'll withdraw this for now and work on it some more.

https://github.com/npm/npm/blob/9e03561547ec5830c5f61caa4e6221d4d3b813aa/lib/utils/lifecycle.js#L73

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

Successfully merging this pull request may close these issues.

2 participants