Useful snippets

    npm link refuses to go away | clear npm cache

    If you mistakenly forget to unlink, you can manually clean up artifacts from yarn or npm.

    For npm, the link command creates global packages which can be removed by executing:

    sudo npm rm --global "mylib"

    1. Try

    Maybe unlink package?

    npm unlink @scope/package

    clear / swap out cache on either project

    npm install --cache /tmp/empty-cache

    restart all servers

    1. try uninstalling globally and reinstalling dependency:
    sudo npm rm --global @scope/library
    npm rm --global @scope/library
    npm ls --global @scope/library
    npm uninstall @scope/library
    npm i @scope/librayr@latest --save-exact

    try deleting package.json

    try restarting servers???