admin管理员组

文章数量:1194384

I've installed Webpack through NPM in my ASP.NET core Web project. And now version of webpack is: 2.4.1. However, I need to install the following version of webpack: 2.1.0-beta.25.

I've tried to use the following command:

npm install [email protected]

But it seems that this command is not installed a desired version of Webpack cause this command npm view webpack version shows: 2.4.1

How can I downgrade to 2.1.0-beta.25?

I've installed Webpack through NPM in my ASP.NET core Web project. And now version of webpack is: 2.4.1. However, I need to install the following version of webpack: 2.1.0-beta.25.

I've tried to use the following command:

npm install [email protected]

But it seems that this command is not installed a desired version of Webpack cause this command npm view webpack version shows: 2.4.1

How can I downgrade to 2.1.0-beta.25?

Share Improve this question edited Aug 9, 2021 at 3:07 Penny Liu 17.4k5 gold badges86 silver badges108 bronze badges asked Apr 24, 2017 at 13:50 StepUpStepUp 38.1k16 gold badges92 silver badges157 bronze badges 3
  • 1 I didnt found [email protected] but there is [email protected] maybe try this one... to check all versions of webpack run "npm view webpack versions" ;) – MarcelD Commented Apr 24, 2017 at 13:56
  • 1 npm view webpack version probably shows the latest available version, not the version you have installed. – Gimby Commented Apr 24, 2017 at 14:02
  • You should probably make sure your global and repository versions match, also – Sandy Gifford Commented Apr 24, 2017 at 16:35
Add a comment  | 

3 Answers 3

Reset to default 13

Try

npm uninstall webpack

npm install [email protected]

or

npm uninstall webpack --save

npm install [email protected] --save

npm view does not show the installed packages, but information from the package repository. If you omit the version, it will always show the latest version.

You can use npm ls instead:

npm ls webpack

Just change the version in your **package.json** and hit npm i and it should have installed the mentioned version in package.json. for confirmation go to webpack folder in node_modules and read package.json and you should be able to see the same version. Or just do npm show webpack version and it will show you the installed version

本文标签: javascriptHow to downgrade version of WebpackStack Overflow