You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
I am playing with pkg and when I try to run the executable, I got an error saying one of the required components is not available. Can someone please let me know what I might be doing wrong?
My guess is that one of your dependencies includes a native addon - pkg will warn about that. Otherwise it may be that pkg couldn't detect some source files - check the README about how to include. Otherwise you might get more help if you include the actual error message.
@lselden
Thanks for getting back! The pkg command actually works and does create the executables. However when I run the executable on my mac for example, I am getting the following error:
pkg/prelude/bootstrap.js:1244
throw error;
^
Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
at inspector.js:24:9
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:276:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:218:10)
at loadNativeModule (internal/modules/cjs/helpers.js:25:9)
at Function.Module._load (internal/modules/cjs/loader.js:906:15)
at Module.require (internal/modules/cjs/loader.js:1087:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:73:18)
at Object. (/snapshot/ginit/lib/repo.js:11:17)
at Module._compile (pkg/prelude/bootstrap.js:1320:22) {
code: 'ERR_INSPECTOR_NOT_AVAILABLE'
}
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
Activity
lselden commentedon Nov 3, 2020
My guess is that one of your dependencies includes a native addon - pkg will warn about that. Otherwise it may be that pkg couldn't detect some source files - check the README about how to include. Otherwise you might get more help if you include the actual error message.
billtlee commentedon Dec 9, 2020
@lselden
Thanks for getting back! The pkg command actually works and does create the executables. However when I run the executable on my mac for example, I am getting the following error:
pkg/prelude/bootstrap.js:1244
throw error;
^
Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
at inspector.js:24:9
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:276:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:218:10)
at loadNativeModule (internal/modules/cjs/helpers.js:25:9)
at Function.Module._load (internal/modules/cjs/loader.js:906:15)
at Module.require (internal/modules/cjs/loader.js:1087:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:73:18)
at Object. (/snapshot/ginit/lib/repo.js:11:17)
at Module._compile (pkg/prelude/bootstrap.js:1320:22) {
code: 'ERR_INSPECTOR_NOT_AVAILABLE'
}
lselden commentedon Dec 10, 2020
Looks like you're trying to use --inspect, or a package you're using is trying to use the inspector, which is disabled by pkg. See #93
github-actions commentedon Mar 25, 2021
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
github-actions commentedon Mar 31, 2021
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.
build: disable NODE_OPTIONS
build: disable NODE_OPTIONS
build: disable NODE_OPTIONS