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

npm i / npm ci for multiple target archs #648

Answered by darcyclarke
samskiter asked this question in CLI
Discussion options

You must be logged in to vote

@samskiter I think the article you referenced actually gets a number of things wrong. Checking in your node_modules folder will not ensure that your project/application will work across different architectures/platforms. We do a best effort to install dependencies but there are a number of conditions which may mean npm install does not make the same node_modules across different platforms/architectures.

Example: npm will actually fail to install optional dependencies if their supported os (process.platform) or cpu (ie. process.arch) definitions mismatch the current platforms/environment (this is why they're considered optional & we do a best effort in all cases). engines (ref. https://doc…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@samskiter
Comment options

Comment options

You must be logged in to vote
3 replies
@samskiter
Comment options

@samskiter
Comment options

@kroese
Comment options

Answer selected by MylesBorins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
CLI
Labels
None yet
4 participants