T
T
Tortway2018-07-19 19:06:26
npm
Tortway, 2018-07-19 19:06:26

How to change package.json which belongs to a package?

I use webpack and yarn.
There is a react-nouislider package installed, but its dependencies include the nouislider package version ^9.2.0.
wrxTpa6.png
How can I change here to version 11.1.0?
I tried yarn upgrade [email protected]
However, in this case, react-nouslider does not stop using the older version of the nouislider package, because, as I understand it, it depends on the specific version ^9.2.0 and starts downloading it separately and working only with it.
Is it necessary to write something in the root package.json file, and not in the package.json file that is inside the package?
But what exactly to do I did not understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-07-19
@Tortway

Under no circumstances should this be done. Moreover, the packages have different major versions, which means that their API is most likely not compatible.
Want to change the react-nouislider package? Fork it to github, rewrite it as you like, and publish your version to npm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question