Hamed Minaee
Hamed Minaee

Reputation: 2560

How to install a specific version of webpack globally

I am using web pack to build my react code on a pipeline on server. However recently there was a major change and now everything is broken. Here is what I use :

npm install -g webpack

But I need to install webpack globally like this with version:

npm install -g webpack 1.14.0

How can I do that?

Upvotes: 6

Views: 12651

Answers (1)

jens
jens

Reputation: 2145

Try it with [email protected] to install a specific version. You likely want to uninstall the other versions first.

Upvotes: 9

Related Questions