RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

Error occured while installing packages

Open decpk opened this issue 3 years ago • 9 comments

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)

image

decpk avatar Aug 05 '22 09:08 decpk

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.

decpk avatar Aug 05 '22 09:08 decpk

Please provide your debug log. You can access this from the Help menu: image

Also, is your CPU Intel or Apple?

lukehaas avatar Aug 05 '22 09:08 lukehaas

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. (node:electron/js2c/browser_init:101:7068)', ' at SimpleURLLoaderWrapper.emit (node:events:394:28)', '[2022-05-01 10:20:50.616] [error] Error: net::ERR_INTERNET_DISCONNECTED', ' at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7068)', ' at SimpleURLLoaderWrapper.emit (node:events:394:28)', '[2022-05-30 11:03:46.852] [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-06-30 19:30:31.640] [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-07-05 15:55:24.154] [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-07-11 09:41:39.108] [error]', '[2022-07-11 16:58:27.095] [error]', '[2022-07-12 12:04:55.456] [error]', '[2022-07-18 08:32:02.893] [error]', '[2022-07-20 08:07:33.283] [error]', '[2022-07-22 21:04:59.840] [error]', '[2022-07-29 23:14:22.061] [error]', '[2022-07-30 12:35:16.101] [error]', '', ], }, ];

decpk avatar Aug 05 '22 16:08 decpk

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?

lukehaas avatar Aug 06 '22 10:08 lukehaas

No @lukehaas That's not a chance. I've tried multiple times with multiple connections

decpk avatar Aug 06 '22 16:08 decpk

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

lukehaas avatar Aug 08 '22 08:08 lukehaas

Yes, Installing via npm worked. But still not working from runjs. I don't remember anything any changes in the system setting or node.

decpk avatar Aug 08 '22 10:08 decpk

If you remove packages via RunJS, does that work?

lukehaas avatar Aug 08 '22 10:08 lukehaas

Yes, I'm able to remove packages with remove button

decpk avatar Aug 08 '22 10:08 decpk

@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.

lukehaas avatar Aug 24 '22 16:08 lukehaas

After updation, I'm able to install packages.

decpk avatar Aug 25 '22 12:08 decpk