admin管理员组文章数量:1415420
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 .
本文标签: javascriptCannot Uninstall two npm PackagesStack Overflow
版权声明:本文标题:javascript - Cannot Uninstall two npm Packages - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745229027a2648740.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论