Skip to content
Advertisement

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:

101@1.6.3

d@1.0.1

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 (101@1.6.3 and d@1.0.1), delete those lines.

Then delete your package-lock.json file.

Then delete your node_modules folder.

Now run npm install

Advertisement