question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn build server binary does not fail when no nexe prebuild binary is available

See original GitHub issue
  • Node 8.15.1

Description

yarn task build:server:binary does not fail when nexe can’t fetch a prebuild binary.

INFO  DEPENDENCY:NEXE Starting...
INFO  DEPENDENCY:NEXE Completed! time=1ms {"time":{"expected":9007199254740991,"ms":1552485158580}}
INFO  BUILD:SERVER:BINARY:PACKAGE Executing 'npm ["run","build:nexe"]' {"options":{"cwd":"/src/packages/server"}}
INFO  BUILD:SERVER:BINARY:PACKAGE Completed! time=39238ms {"time":{"expected":9007199254740991,"ms":1552485156727}}
INFO  BUILD:SERVER:BINARY Completed! time=195361ms {"time":{"expected":9007199254740991,"ms":1552485000605}}
Done in 196.37s.

Running npm run build:nexe shows the error

Error: linux-x64-8.15.1 not available, create it using the --build flag
    at NexeCompiler.<anonymous> (/src/packages/server/node_modules/nexe/lib/compiler.js:256:35)
    at step (/src/packages/server/node_modules/nexe/lib/compiler.js:46:23)
    at Object.next (/src/packages/server/node_modules/nexe/lib/compiler.js:27:53)
    at fulfilled (/src/packages/server/node_modules/nexe/lib/compiler.js:18:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Steps to Reproduce

Use this Dockerfile

FROM node:8.15-alpine

WORKDIR /src

RUN apk --no-cache --no-progress add g++ git libsecret-dev libxkbfile-dev make 

RUN git clone https://github.com/codercom/code-server.git . \
 && npm install -g yarn@1.13 \
 && yarn
RUN yarn task build:server:binary

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sr229commented, Mar 13, 2019

You don’t need to be a JS dev to know stdio, stderr and exit codes.

0reactions
MichaelDesantiscommented, Mar 29, 2019

We now use nbin instead of nexe. This issue is no longer relevant and can be closed.

@nol166 please close.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn build server binary does not fail when no nexe prebuild binary ...
Node 8.15.1 Description yarn task build:server:binary does not fail when nexe can't fetch a prebuild binary. INFO DEPENDENCY:NEXE Starting.
Read more >
Error Codes | Yarn - Package Manager
This message simply means that the package couldn't be found there. It's not a huge issue, but you probably should try to limit...
Read more >
No Next.js version could be detected in your project. Make ...
I have been getting this error on vercel deployments although I have a next in the dependencies. What I find has been letting...
Read more >
Getting Started - ESBuild
#Install esbuild. First, download and install the esbuild command locally. A prebuilt native executable can be installed using npm (which is automatically ...
Read more >
Node.js v19.3.0 Documentation
Asserts that the function fn does not throw an error. Using assert.doesNotThrow() is actually not useful because there is no benefit in catching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found