npm deinstalliert eigene Pakete?

Hallo!

Für ein Projekt möchte ich eine MySQL Datenbank in ein JavaScript Projekt mit Node.js einbinden. Dafür muss ich das neue mysql Package installieren. Wenn ich dies mit >npm install mysql@latest in der cmd mache, führt es einen Prozess durch, welcher mit “removed 238 packages, changed 1 package and audited 75 packages”. Danach ist npm unbenutzbar und wirft permanent Fehler, die darauf verweisen, dass Files fehlen.

Weiß jemand von euch von diesem Problem und auch einer eventuellen Lösung?

Mit freundlichen Grüßen,

Philipp

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
11 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Weardflex
1 year ago

I would have to see more if you could install it via pip.

This will probably be unnecessary for you, but remember to install Ubuntu on a stick there you have most things pre-installed and it’s significantly easier

regex9
1 year ago

You will certainly use MySQL 8 (or higher), which uses a new authentication method that is not yet supported by the mysql package. Instead, you can node-mysql2– Use package.

Weardflex
1 year ago

Are you on Windows 10 or 11

regex9
1 year ago
Reply to  Weardflex

It is not a python module, but an NPM package. It is therefore not found in the PyPI or preinstalled on Ubuntu.

Weardflex
1 year ago

Asooo

regex9
1 year ago

The problem has nothing to do with the OS. It is about connecting between MySQL server and client library.

Weardflex
1 year ago

Let me read if this is still supported. Much is only allowed on win 11 lately

Weardflex
1 year ago

Newest update installed