7

I linked a locally developed package using npm link command. Since then I am not able to unlink it back.

I am on windows 10.

I have tried:

  1. npm unlink
  2. npm remove
  3. npm uninstall
  4. Completely wipe out npm caches and global repo.

I would expect the package will be installed from the npm network repo now as i have:

"dependencies": {
   "package": "^version"
}

in my package.json file but it is still installing the local linked version. Where npm stores links?

Charles Dominic
  • 345
  • 3
  • 8
Fis
  • 787
  • 2
  • 10
  • 24
  • Did you figure it out? – TMG Dec 18 '17 at 10:05
  • 3
    I did `npm unlink` from the target directory and then `npm install` in the directory that has the dependence. Not sure if this is the proper way, but it made the trick for me. – TMG Dec 18 '17 at 10:18

1 Answers1

1
cd $(npm root -g)
rm -rf <package>
Wil Moore III
  • 6,968
  • 3
  • 36
  • 49