There is no possibility to create NX workspace without Yarn installed
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >
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
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.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! 🙏