javascript - Cannot Uninstall two npm Packages - Stack Overflow

I have installed node-gyp in order to install scrypt. While installing the node-gyp package the followi

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?

Share Improve this question edited May 2, 2021 at 2:17 user229044 240k41 gold badges344 silver badges347 bronze badges asked Apr 7, 2021 at 2:28 JF0001JF0001 83912 silver badges34 bronze badges 3
  • 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
Add a ment  | 

2 Answers 2

Reset to default 5

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

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

相关推荐

  • javascript - Cannot Uninstall two npm Packages - Stack Overflow

    I have installed node-gyp in order to install scrypt. While installing the node-gyp package the followi

    4小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信