As we know, the resolutions is used to solve Dependency versions to automatically resolve with if conflicts occur between packages.
in bower.json
.
After searching this package.json page, I did not find the resolutions
is supported in it. Is there any reason why resolutions
should not be here or am I missing something?
As we know, the resolutions is used to solve Dependency versions to automatically resolve with if conflicts occur between packages.
in bower.json
.
After searching this package.json page, I did not find the resolutions
is supported in it. Is there any reason why resolutions
should not be here or am I missing something?
2 Answers
Reset to default 2It's not in the package.json specification because it's part of the bower.json specification, which is different. bower.json files are included in packages you install with bower, not npm. So if I say:
bower install jquery
Then bower.json
will be in ./bower_ponents/jquery directory.
Yarn does have the resolutions
feature though, see doc here
yarn install --flat
Only allow one version of a package. On the first run this will prompt you to choose a single version for each package that is depended on at multiple version ranges. These will be added to your package.json under a resolutions field.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744335500a4569095.html
评论列表(0条)