Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

create version-aware executables to provide multiple npm installations #112

Closed
wants to merge 3 commits into from

Conversation

Ma27
Copy link
Collaborator

@Ma27 Ma27 commented Jan 17, 2016

this is not related to #83 .

resolves #94

The issue is that when having multiple node instances in a VM, there are multiple executables (node-v5.4.1, node-v0.12.2, etc.), but not multiple npm executables.
This is because of the fact that npm's executable always calls the "node" executable, but this means that even npm 2 would work with node 5 and not with node 0.12 although npm 2 has been installed with npm 0.12.
The fix for that issue was to create executables like "npm-2.7.4", etc., but those call inside the proper "npm" callable, but with the proper npm executable, so it is possible execute the proper executable with the proper node environment.

@Ma27 Ma27 added the bug label Jan 17, 2016
@Ma27 Ma27 self-assigned this Jan 17, 2016
@Ma27 Ma27 added this to the 1.9 milestone Jan 17, 2016
@Ma27 Ma27 added the in review label Jan 17, 2016
@Ma27
Copy link
Collaborator Author

Ma27 commented Jan 17, 2016

/cc @willdurand not sure whether that's a bit too hacky. Could you please have a look at that?


file { $npm_filename:
ensure => file,
mode => 0777,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filemode should be quoted

@Ma27 Ma27 added the delayed label Jan 17, 2016
# the version will be extracted from the CLI.
# the output contains a line break, but this line break causes weird
# symlink names, so the version needs to be stripped.
version.strip
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the v- prefix is missing

@Ma27 Ma27 closed this Jan 18, 2016
@Ma27 Ma27 deleted the #94-missing-npm-symlink branch January 18, 2016 14:04
@Ma27
Copy link
Collaborator Author

Ma27 commented Jan 18, 2016

see ticket #94 for more information

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

Successfully merging this pull request may close these issues.

NPM executables not symlinked
1 participant