Error occured while installing packages
Hi @lukehaas
I'm trying to install new packages but everytime it says An error occured while installing package_name
OS: macos Monteray 12.5 Runjs version: 2.5.1 (2.5.1)
This is the second time I'm facing this issue. First time there was an update for runjs and I installed it and it remove the error and was able to install. But today again same issue.
Please provide your debug log. You can access this from the Help menu:

Also, is your CPU Intel or Apple?
It is intel based
DEBUG LOGS
[
{
path: '/Users/praveenkumar/Library/Logs/runjs/main.log',
lines: [
'[2022-04-11 16:19:51.896] [warn] sysctl shell command to check for macOS Rosetta environment failed: Error: Command failed: sysctl sysctl.proc_translated',
"sysctl: unknown oid 'sysctl.proc_translated'",
'',
'[2022-05-01 10:20:50.611] [error] Error: Error: net::ERR_INTERNET_DISCONNECTED',
' at SimpleURLLoaderWrapper.
Thanks. From the logs, it looks like there have been some internet connection issues. Is it possible that you were disconnected from the internet at the time that you were attempting to install a package?
No @lukehaas That's not a chance. I've tried multiple times with multiple connections
Ok, you mentioned that installing packages worked and then stopped working; this likely means that the issue is external to RunJS. Are you aware of any changes on your system that coincide with this issue, such as changes to system settings or removing/updating Node?
One thing for you to test is if installing packages through the terminal works for you. Try opening your terminal app and executing the following command:
cd "/Users/praveenkumar/Library/Application Support/runjs" && npm install chai -S
Yes, Installing via npm worked. But still not working from runjs. I don't remember anything any changes in the system setting or node.
If you remove packages via RunJS, does that work?
Yes, I'm able to remove packages with remove button
@decpk in version 2.6.0 I've made some improvements to the error logging that may provide some better insights into the issues you're facing. Could you try updating and then attempting again to install an NPM package? After that, copy your debug log again from the help menu and paste it here, please.
After updation, I'm able to install packages.