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?
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?
- Why do you want to install these packages? Are they dependencies of node-gyp? What does the package-lock.json indicate they are dependencies of? – Alexander Staroselsky Commented Apr 7, 2021 at 2:31
- Thank you @AlexanderStaroselsky I have not explicitly installed them, but they were installed with node-gyp. I have since removed node-gyp (and thus cannot verify the dependencies), but wasn't able to remove these two packages. – JF0001 Commented Apr 7, 2021 at 2:34
- Please don't sign your posts with repetitive taglines like "Thank You, J". Your posts are all "signed" by your usercard already. – user229044 ♦ Commented May 2, 2021 at 2:20
2 Answers
Reset to default 5If 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
Its Depends on how you have installed those packages.
if it's a local package to the project
use "npm uninstall --save 'package name'" or simply remove the package from package.json of your project. Then Delete node_modules folder and install npm again using "npm install"
if it's a global package use [sudo] npm uninstall -g "package name"
use sudo based on which OS your are using .
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745229028a4617594.html
评论列表(0条)