Skip to content

Cannot Uninstall two npm Packages

I have installed node-gyp in order to install scrypt. While installing the node-gyp package the following two packages were installed along with it:

[email protected]

[email protected]

I have tried to remove these two packages, realising that I did not need the node-gyp and scrypt packages, but sudo npm uninstall does not remove them. How can I uninstall these packages?

Advertisement

Answer

If your package.json file contains entries for these modules ([email protected] and [email protected]), delete those lines.

Then delete your package-lock.json file.

Then delete your node_modules folder.

Now run npm install

User contributions licensed under: CC BY-SA
9 People found this is helpful