Open li-boxuan opened 6 years ago
My understanding is that yarn has similar, or worse, problems with optional packages.
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?
I am using nvm to switch versions. But is there a good way to force everyone to use the same version of node?
https://nitayneeman.com/posts/standardizing-node.js-version-in-an-npm-package/
This looks a simple good hack to me
Now we are using npm, but facing some problems:
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 https://github.com/npm/npm/issues/20434#issuecomment-386815163.An issue regarding non-optional packages. See https://github.com/coala/gh-board/pull/87