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
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
Hey, thanks for the quick answer. Meanwhile we have actually got it to run (to install via PowerShell the packages has not deleted as with cmd). However, it tells us now that our SQL client does not support the authentication protocol and we should upgrade the client, but according to all sources we have the latest versions. Do you know anything about it?
LG
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.
Are you on Windows 10 or 11
It is not a python module, but an NPM package. It is therefore not found in the PyPI or preinstalled on Ubuntu.
Asooo
The problem has nothing to do with the OS. It is about connecting between MySQL server and client library.
Let me read if this is still supported. Much is only allowed on win 11 lately
Jap, it’s all up-to-date. The error number is 1251.
Newest update installed
10