DEV Community

Discussion on: NPM Linking and Unlinking

Collapse
 
stephencweiss profile image
Stephen Charles Weiss

Also... let's say you do goof and get the ENOENT: no such file or directory, access '/... error... then what?

Thread Thread
 
erinbush profile image
Erin Bush

What I've had to do is go back to whatever state has the files/folders that npm is looking for. So let's say you have a package that is on one branch and not on another, you'd have to go back to your other branch and run npm link again for that package before running npm unlink my-package-name in your main project

Thread Thread
 
menocomp profile image
Mina Luke

You may also go to the folder where the symbolic link library is installed and deleted the folder.