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

Switch from npm to yarn #141

Open
li-boxuan opened this issue Aug 1, 2018 · 4 comments
Open

Switch from npm to yarn #141

li-boxuan opened this issue Aug 1, 2018 · 4 comments

Comments

@li-boxuan
Copy link
Member

Now we are using npm, but facing some problems:

  1. We are committing package-lock.json. If a contributor uses npm@6, there will be lots of carets before version number "^1.0.2". However, if another contributor uses npm@5, there will not be carets. See npm install changes package-lock.json from exact versions to loosly versions npm/npm#20434 (comment).

  2. An issue regarding non-optional packages. See package-lock.json: Include only non-optional packages #87

@jayvdb
Copy link
Member

jayvdb commented Sep 10, 2018

My understanding is that yarn has similar, or worse, problems with optional packages.

@123vivekr
Copy link
Member

Node Version Manager (NVM) can be used to load specific versions of npm. So everyone can work on the same version of node and avoid issues with dependency versions. What do you think about this?

@li-boxuan
Copy link
Member Author

I am using nvm to switch versions. But is there a good way to force everyone to use the same version of node?

@bhawesh96
Copy link
Member

https://nitayneeman.com/posts/standardizing-node.js-version-in-an-npm-package/

This looks a simple good hack to me

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

No branches or pull requests

5 participants