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
?
3 Answers
Reset to default 13Try
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
版权声明:本文标题:javascript - How to downgrade version of Webpack? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738440709a2086939.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
npm view webpack version
probably shows the latest available version, not the version you have installed. – Gimby Commented Apr 24, 2017 at 14:02