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.

There is no possibility to create NX workspace without Yarn installed

See original GitHub issue

I tried to create new nx workspace with and get error. If I use npm for creating workspace I really don’t need have Yarn on my system to work with npm

Current Behavior

Workspace didn’t created

Expected Behavior

Workspace created

Steps to Reproduce

Run npm init nx-workspace without Yarn installed in system

Failure Logs

⠋ Installing packages.../bin/sh: yarn: command not found

Environment

Mac OS X

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
bekoscommented, Nov 18, 2020

Since v10.4 the we default to NPM, unless --package-manager flag is used when creating a new workspace. I suppose this will solve your issue, but feel free to reopen in case there is a problem.

0reactions
github-actions[bot]commented, Nov 18, 2020

This issue has been automatically marked as stale because it hasn’t had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create nx workspace - node.js - Stack Overflow
No > NX Nx is creating your workspace. To make sure the command works reliably in all environments, and that the preset is...
Read more >
Integrating Nx and Lerna
Use Nx for task scheduling, without changing the Lerna setup · 1. Install Nx. npm i nx --save-dev. (or the yarn/pnpm alternatives). ·...
Read more >
Speed up your Yarn Workspace with Nx | by Emily Xiong
If you have a Yarn workspace, you can turn it into an Nx monorepo with a simple command. Below is an example of...
Read more >
Workspaces - Yarn
It allows you to setup multiple packages in such a way that you only need to run yarn install once to install all...
Read more >
@nxrocks/nx-quarkus - npm
If you have not already, create an Nx workspace with the following: ... npm npm install @nxrocks/nx-quarkus --save-dev # yarn yarn add ...
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