Error installing npm

Asked

Viewed 548 times

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 :)

  • 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.

  • I used the command 'sudo apt autoremove' and it removed the cited files, however, the problem at the time of installing npm still persists.

  • It is still the same error message in the installation?

  • Tries to remove and add the nodejs again.

  • 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.

  • I removed and reinstalled the nodejs globally, but it’s still making the same mistake.

  • Have you had any solution? I’m having the same problem.

Show 3 more comments

1 answer

2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.