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.

opts.pkg undefined #1508

@seamory

Description

@seamory

What version of pkg are you using?

5.5.2

What version of Node.js are you using?

16.13.0

What operating system are you using?

WSL Ubuntu 20.04, Windows 10

What CPU architecture are you using?

Intel i59400

What Node versions, OSs and CPU architectures are you building for?

node14-linux-x64

Describe the Bug

[email protected]
compression: GZip
/usr/local/node/lib/node_modules/pkg/node_modules/prebuild-install/util.js:13
major: opts.pkg.version.split('.')[0],
^

TypeError: Cannot read properties of undefined (reading 'split')
at Object.getDownloadUrl (/usr/local/node/lib/node_modules/pkg/node_modules/prebuild-install/util.js:13:29)
at Object. (/usr/local/node/lib/node_modules/pkg/node_modules/prebuild-install/bin.js:77:22)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
./build/bootstrap.sh: 32.1%

Expected Behavior

no TypeError

To Reproduce

if i use pkg without nestjs project, this error will disappear.

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