Weird, not working just out of the box in the simplest scenario (details inside)
See original GitHub issueI literally just did npm install -g pkg
followed by pkg main.js --out-path build/
(main.js
being, of course, the name of my node script)
After running this (with no errors) I get three files (main-linux
, main-macos
, main-win.exe
) on my build/
directory.
When I try to run build/main-macos
it fails with the following message:
pkg/prelude/bootstrap.js:1185
throw error;
^
Error: No native build was found for platform=darwin arch=x64 runtime=node abi=57 uv=1 libc=glibc
...
Any idea on why this is happening?
Node version: v8.12.0 NPM version: 6.4.1 OS: MacOS 10.13.6
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:9
Top Results From Across the Web
Weird, not working just out of the box in the simplest scenario ...
After running this (with no errors) I get three files ( main-linux , main-macos , main-win.exe ) on my build/ directory. When I...
Read more >Why does some text display with square boxes in some apps ...
When running certain apps on Windows 10 desktop or Windows 10 Mobile, some characters display as a square or rectangular box, or as...
Read more >12 Out-of-the-Box Interview Questions (With Sample Answers)
When preparing for a job interview, candidates review common questions they might receive about their background, strengths and goals.
Read more >Puzzling Quantum Scenario Appears Not to Conserve Energy
By resolving a paradox about light in a box, researchers hope to clarify the concept of energy in quantum theory.
Read more >Go-To Scripts for 16 Tricky Customer Service Scenarios
Use this guide to train new team members, engage in role-playing exercises, or just refine your own approach to customer service scenarios.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW, I’m also having this problem with leveldown and libsodium. I’ll share any info if I can fix it. 🤞
@lefuturiste @almosnow I was running into this issue too. I created a GitHub gist recreating the issue here (which has steps for reproduction and also shows the script runs normally without pkg): https://gist.github.com/johnsonjo4531/cbdace0097f9a658fd7c3ff439f5111e. My problem seems to be using the secure-password package. Here’s the rest of the stack trace which seems to indicate that node-gyp-build couldn’t find the build for sodium-native on the current platform: