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.

Desktop toolchain does not support Node 10 currently

See original GitHub issue

We’ve had some reports of contributors being unable to build Desktop in Node 10, which has mostly been down to native node modules which weren’t compatible with Node 10.

Some recent reports of users who encountered this: #5603, #5654, #5672

Note that this is a separate issue to how we build the Electron itself - we use app/.npmrc to control how the native modules the app needs are built.

I believe https://github.com/desktop/desktop/pull/5644 is the last piece of the puzzle, but it’s blocked on requiring clarification from another team about whether it’s the right approach.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
shiftkeycommented, Nov 1, 2018

Friendly bump on this because Node 10 was just transitioned to LTS, meaning Node 8 support is going to be phased out - https://nodejs.org/en/blog/release/v10.13.0/

1reaction
shiftkeycommented, Jan 18, 2019

Tentatively pulling this into 1.6.1 because I have a working branch, but it needs some tooling to catch regressions. I plan to open a few PRs in the coming days in this order:

  • first, extract legal-eagle from the main build.ts into it’s own module and wrap it in a Promise, so it can be chained better (top-level await isn’t currently possible, as far as I’m aware)
  • next, introduce a regression test for any emitted CSS in the app bundle - if it contains a $ this represents a SassScript value that wasn’t encoded properly, so the app will run but something won’t look right
  • with all that in place, upgrade node-sass, catch all the new regressions, ensure it passes CI and test the app out
  • test out enabling CI to use Node 10 rather than Node 8. if that works, refresh the docs to simplify things and open a PR that allows maintainers and contributors time to upgrade their setup
Read more comments on GitHub >

github_iconTop Results From Across the Web

Node Sass with apple m1, Big Sur and arm64 - Stack Overflow
I think, you are using an M1 Mac. And node-sass currently doesn't support it natively.
Read more >
Set up NodeJS on native Windows - Microsoft Learn
A guide to help you get your Node.js development environment set up directly on Windows.
Read more >
How to fix 'npm does not support Node.js v14' error on ...
How to fix 'npm does not support Node.js v14' error on Windows 10 · Uninstall node.js (Windows Add/Remove programs) · Manually delete the...
Read more >
node-gyp - npm
node -gyp - Node.js native addon build tool ... node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon ...
Read more >
How to Update Node.js to the Latest Version (2022)
js and npm versions. This method will allow you to use the Linux subsystem on Windows desktops. 3. macOS: Updating Node.js Version with...
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