Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Help with packaging a project #989

Closed

Description

@billtlee

Hi,

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?

Here is the link to the git repository:

https://github.com/billtlee/ginit

Thanks in advance!

Activity

  1. lselden commented on Nov 3, 2020

    @lselden

    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.

  2. billtlee commented on Dec 9, 2020

    @billtlee
    Author

    @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'
    }

  3. lselden commented on Dec 10, 2020

    @lselden

    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

  4. github-actions commented on Mar 25, 2021

    @github-actions

    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

  5. github-actions commented on Mar 31, 2021

    @github-actions

    This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

  6. added a commit that references this issue on May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions