Closed Drjacky closed 8 months ago
10.2.4
v21.3.0
macoS
Apple M1
node21-mac-arm64
npm pkg index.js ->
npm pkg index.js
32 verbose stack Run "npm help pkg" for more info 32 verbose stack at Pkg.usageError (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/base-command.js:113:26) 32 verbose stack at Pkg.exec (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/commands/pkg.js:52:20) 32 verbose stack at Pkg.cmdExec (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/base-command.js:142:17) 32 verbose stack at Npm.exec (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/npm.js:136:20) 32 verbose stack at module.exports (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/cli-entry.js:61:15) 33 verbose cwd /Users/usernameee/Desktop/temp/projectName/dist 34 verbose Darwin 23.1.0 35 verbose node v21.3.0 36 verbose npm v10.2.4 37 error code EUSAGE 38 error 38 error Manages your package.json 38 error 38 error Usage: 38 error npm pkg set <key>=<value> [<key>=<value> ...] 38 error npm pkg get [<key> [<key> ...]] 38 error npm pkg delete <key> [<key> ...] 38 error npm pkg set [<array>[<index>].<key>=<value> ...] 38 error npm pkg set [<array>[].<key>=<value> ...] 38 error npm pkg fix 38 error 38 error Options: 38 error [-f|--force] [--json] 38 error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] 38 error [-ws|--workspaces] 38 error 38 error Run "npm help pkg" for more info 39 verbose exit 1 40 timing npm Completed in 97ms 41 verbose code 1
Build single executable of my nodejs app
Single executable of https://github.com/svg/svgo
What version of pkg are you using?
10.2.4
What version of Node.js are you using?
v21.3.0
What operating system are you using?
macoS
What CPU architecture are you using?
Apple M1
What Node versions, OSs and CPU architectures are you building for?
node21-mac-arm64
Describe the Bug
npm pkg index.js
->Expected Behavior
Build single executable of my nodejs app
To Reproduce
Single executable of https://github.com/svg/svgo