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.

Can the build NOT use yarn?

See original GitHub issue

Feature Description:

At the moment, you are documenting the library prerequisite to be [Node.js >= v10.20.0](https://nodejs.org/), which includes npm.

Unfortunately it appears that you also require the user-land to also have yarn installed. Which isn’t the case for us (at Ledger) as we moved to pnpm now.

During the prebuild phase, we’re blocked by

ledger-live-desktop:build:     npm ERR! 'yarn' is not recognized as an internal or external command,

Would it be possible to make the build not using yarn but just npm run {command} ?

Thanks, gre

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thegeckocommented, Aug 13, 2022

It looks like prepare may be called when packages consuming this module are packaged?

https://docs.npmjs.com/cli/v8/using-npm/scripts#life-cycle-scripts

1reaction
thegeckocommented, Aug 12, 2022

If you use electron rebuild, don’t include usb in the rebuild as it’s no longer required since node-usb moved to using NAPI

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't use yarn build command · Issue #109 - GitHub
Hello @ojkelly I recently migrate successfully my project from Yarn 1 to Yarn 3 After a yarn install which worked like a charm,...
Read more >
What does " yarn build " command do? Are " npm build " and ...
yarn build and npm build are not existing commands by default. I think you mean yarn run build or npm run build ....
Read more >
yarn install
yarn install is used to install all dependencies for a project. This is most commonly used when you have just checked out code...
Read more >
Build has stopped since I changed the build command to yarn ...
Hi, I changed the build command from npm to yarn - yarn install && yarn run build. However, I am getting error when...
Read more >
Strange build error with yarn add - beginner - ReScript Forum
Clone a basic template repo I use for starting a new rescript project: ... yarn build yarn run v1.22.19 $ rescript /bin/sh: rescript:...
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