'Cannot install Atom packages. npm ERR! code E500

I've just installed Atom and I wanted to install some packages. However, I couldn't do it due to this error:

Installing “[email protected]” failed.Hide output…

npm ERR! code E500 npm ERR! 500 Internal Server Error - GET https://www.atom.io/api/packages/script/versions/3.32.2/tarball

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ronal.atom.apm_logs\2022-04-19T04_18_25_308Z-debug.log

I am not quite sure how to solve it. Have you guys had the same issue? It would be wonderful if you could help me out.



Solution 1:[1]

Server is up. When using the following URL you'll get a response: https://www.atom.io/api/packages/atom-ternjs/versions/0.20.0/

When you add "tarball" to the end it errors. Full URL: https://www.atom.io/api/packages/atom-ternjs/versions/0.20.0/tarball Error: {"message":"Application error"}

I'm encountering the same issue with multiple other plugins too.

The Atom Github project has the issue registered, here is the link to the issue if you want to follow it: https://github.com/atom/atom/issues/25417

Solution 2:[2]

You can also use the GitHub repo link to download the package.

Then open terminal (or command-prompt) and type the main-part:

apm install atom-community/atom-script

Thats how I installed it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MaxMods
Solution 2 Ahx