0

I have a local package installed with file: like this:

{
    "devDependencies": {
        "foo": "file:../foo"
    }
}

And I want to update it with npm update foo, after I have updated that module, but turn out nothing happened. How can I update package installed through file: with npm?

John Winston
  • 1,260
  • 15
  • 30
  • Does this answer your question? [Update local file dependency with npm](https://stackoverflow.com/questions/32873867/update-local-file-dependency-with-npm) – zbyso Feb 01 '22 at 09:09

1 Answers1

0

Update your file :) or change file:... -> version (example) ^4.1.1

zbyso
  • 108
  • 5
  • I am not publishing my module therefore I have to use `file:...` to install it. For update my file, which one are you referring to? – John Winston Jan 31 '22 at 20:12