2

I have a scenario where I want to develop/QA against a different version of the same package that is used on production. I'm trying to manage this in a single package.json file. However, when I add a package to dependencies and devDependencies with different versions, the npm install command prefers the version specified at dependencies. Is there a way to get it to prefer the version installed at devDependencies? Or is there perhaps a different/better way to manage this scenario?

cjbarth
  • 4,189
  • 6
  • 43
  • 62

1 Answers1

0

npm link is the preferred solution to this problem.

cmcnulty
  • 411
  • 4
  • 12