1
I use Linux Mint 19, some time ago, I installed npm, nodejs, bootstrap, as well as Jquery, Popper.js, etc. However, I decided to delete the folder where I had installed such files, to start again. Now, when I try to re-install npm in the folder, I get the following error:
Reading Package Lists... Ready
Building a dependency tree
Reading status information... Ready
Some packages could not be installed. This may mean that
you requested an impossible situation or, if you are using the
unstable distribution, which some required packages were not
created or removed from "Incoming".
The following information can help resolve the situation:
The following packages have different dependencies: npm : Depends on: Node-Gyp (>= 0.10.9) but will not be installed E: Unable to fix issues, you kept (hold) broken packages.
Note: I am using the "sudo apt-get install npm" command What should I do to solve?
So Gabriel, you’ve got broken packets, try:
sudo apt-get -f install && sudo dpkg --configure -a
BS: I’m not in time to write an answer now, but anything will give feedback if it worked :)– Tuxpilgrim
Apareceu a mensagem: Os seguintes pacotes foram instalados automaticamente e já não são necessários:
 eclipse-platform-data eclipse-rcp fastjar jarwrapper
 libcommons-httpclient-java libeasymock-java libecj-java
 libfelix-bundlerepository-java libfelix-gogo-command-java
 libfelix-gogo-shell-java libicu4j-49-java libjavascriptcoregtk-1.0-0
 libjetty9-java liblucene2-java libobjenesis-java libswt-cairo-gtk-3-jni
 libswt-gtk-3-java libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat8-java
 libwebkitgtk-1.0-0 sat4j Use sudo apt autoremove to remove them.
– Luke Skywalker
I used the command 'sudo apt autoremove' and it removed the cited files, however, the problem at the time of installing npm still persists.
– Luke Skywalker
It is still the same error message in the installation?
– Tuxpilgrim
Tries to remove and add the
nodejs
again.– Tuxpilgrim
Nodejs and npm is what you install to later install jQuery, bootstrap and Popper.js within a project, so if you failed to install nodejs I don’t see how you would install "npm in the folder", npm should be global.
– Guilherme Nascimento
I removed and reinstalled the nodejs globally, but it’s still making the same mistake.
– Luke Skywalker
Have you had any solution? I’m having the same problem.
– Marcius Leandro