You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: warning ../../../../package.json: No license field
error Command failed with exit code 1
Expected Behavior
The Nx workspace should be successfully created without errors.
GitHub Repo
No response
Steps to Reproduce
Run npx create-nx-workspace --pm yarn.
Choose:
-Directory for workspace: vvvv
-Stack: none
-Prettier: No
-CI provider: GitHub
Nx begins creating the workspace but fails with an error.
Nx Report
NX Report complete - copy this into the issue template
Node : x.x.x
OS : Your Operating System Info
yarn : x.x.x
nx : x.x.x
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : x.x.x
@nrwl/eslint-plugin-nx : x.x.x
@nrwl/express : Not Found
@nrwl/jest : Not Found
@nrwl/js : x.x.x
@nrwl/linter : x.x.x
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : x.x.x
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : x.x.x
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/workspace : x.x.x
typescript : x.x.x
Failure Logs
No response
Package Manager Version
yarn: 1.22.19
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
This issue appears to be related to a warning about the missing license field in package.json. Ensuring the workspace creation process handles this warning or providing guidance on how to avoid this error would be helpful.
Thank you for looking into this!
The text was updated successfully, but these errors were encountered:
## Current Behavior
On Windows, when packageManager=pnpm, `create-nx-workspace` fails due to
an issue with `child_process.spawn`.
Using `spawn`, the `@nx/workspace:preset` generator is executed twice
when `packageManager=pnpm`, causing the overall create-nx-workspace flow
to fail, even though most things have been set up correctly to that
point.
Using `fork` has shown success.
## Expected Behavior
Running `create-nx-workspace --packageManager=pnpm` should work on
Windows
## Fixes
Fixes#20222Fixes#27270Fixes#22917Fixes#22312Fixes#28710Fixes#28289Fixes#28235Fixes#22383Fixes#21742Fixes#20270
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Behavior
Error: warning ../../../../package.json: No license field
error Command failed with exit code 1
Expected Behavior
The Nx workspace should be successfully created without errors.
GitHub Repo
No response
Steps to Reproduce
-Directory for workspace: vvvv
-Stack: none
-Prettier: No
-CI provider: GitHub
Nx Report
Node : x.x.x
OS : Your Operating System Info
yarn : x.x.x
nx : x.x.x
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : x.x.x
@nrwl/eslint-plugin-nx : x.x.x
@nrwl/express : Not Found
@nrwl/jest : Not Found
@nrwl/js : x.x.x
@nrwl/linter : x.x.x
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : x.x.x
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : x.x.x
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/workspace : x.x.x
typescript : x.x.x
Failure Logs
No response
Package Manager Version
yarn: 1.22.19
Operating System
Additional Information
This issue appears to be related to a warning about the missing license field in package.json. Ensuring the workspace creation process handles this warning or providing guidance on how to avoid this error would be helpful.
Thank you for looking into this!
The text was updated successfully, but these errors were encountered: