Fix community package update (#3914)

* 🐛 Fix community package update by using `npm i pkg@latest` always
This commit is contained in:
Iván Ovejero 2022-08-22 13:11:51 +02:00 committed by GitHub
parent 8e838b602e
commit 4f3043c65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ class LoadNodesAndCredentialsClass {
): Promise<InstalledPackages> { ): Promise<InstalledPackages> {
const downloadFolder = UserSettings.getUserN8nFolderDowloadedNodesPath(); const downloadFolder = UserSettings.getUserN8nFolderDowloadedNodesPath();
const command = `npm update ${packageName}`; const command = `npm i ${packageName}@latest`;
try { try {
await executeCommand(command); await executeCommand(command);