Open sebababi opened 1 year ago
Hello! Thanks for filing an issue. Unfortunately, I could not reproduce. By the way, the correct command is:
npx create-nx-workspace@latest pwa --preset=react-standalone
I see you are getting a xcrun
error. This error occurs when the Xcode Command Line Tools are not installed or properly configured on your macOS system. To fix this issue, follow these steps:
xcode-select --install
A pop-up window will appear, prompting you to confirm the installation. Click "Install" and wait for the installation to complete.
sudo xcode-select --reset
Enter your password when prompted. This command resets the active developer directory to the default path.
sudo xcode-select -s /Library/Developer/CommandLineTools
This command sets the active developer directory to the Command Line Tools installation path.
After completing these steps, the error should be resolved.
Let me know if your error persists after you do this fix!
I have same error and get it becase
stable@0.1.8
is a dependency of svgo@2.8.0
svgo@2.8.0
is a dependency of postcss-svgo@5.1.0(postcss@8.4.27)
postcss-svgo@5.1.0(postcss@8.4.27)
is a dependency of cssnano-preset-default@5.2.14(postcss@8.4.27)
cssnano-preset-default@5.2.14(postcss@8.4.27)
is a dependency of cssnano@5.1.15(postcss@8.4.27)
cssnano@5.1.15(postcss@8.4.27)
is a dependency of rollup-plugin-postcss@4.0.2(postcss@8.4.27)(ts-node@10.9.1)
rollup-plugin-postcss@4.0.2(postcss@8.4.27)(ts-node@10.9.1)
is a dependency of @nx/rollup@16.5.5(@babel/core@7.22.9)(@swc/core@1.3.70)(nx@16.5.5)(ts-node@10.9.1)(typescript@5.1.6)
In the same way I get similar error deprecated sourcemap-codec@1.4.8
And it's a deep dependency of @nx/rollup@16.5.5
as well.
e uma depedencia da arvore de depedencias de alguns pacote no meu caso e do react-scripts
─┬ react-scripts@5.0.1 ├─┬ @svgr/webpack@5.5.0 │ └─┬ @svgr/plugin-svgo@5.5.0 │ └─┬ svgo@1.3.2 │ └── stable@0.1.8 └─┬ css-minimizer-webpack-plugin@3.4.1 └─┬ cssnano@5.1.15 └─┬ cssnano-preset-default@5.2.14 └─┬ postcss-svgo@5.1.0 └─┬ svgo@2.8.0 └── stable@0.1.8 deduped
deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
I try to install the latest standalone project in a folder called: pwa and I get this error. Basically, since I get the error it stops and doesn't create anything at tall, so non of the files, hence no packages.json so I cannot delete or remove "stable" from it.
STEP BY STEP:
(base) MacBook-Pro:pwa sebba$ npx create-nx-workspace@latest pwa --present=react-standalone Need to install the following packages: create-nx-workspace@15.9.2 Ok to proceed? (y) y
✔ Choose what to create · react ✔ Bundler to be used to build the application · vite ✔ Default stylesheet format · scss xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun ✔ Enable distributed caching to make your CI faster · Yes
To make sure the command works reliably in all environments, and that the preset is applied correctly, Nx will run "npm install" several times. Please wait.
✔ Installing dependencies with npm ✖ Creating your workspace in pwa
Error: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
(base) MacBook-Pro:pwa sebba$ rm -rf pwa (base) MacBook-Pro:pwa sebba$ npx create-nx-workspace@latest pwa --present=react-standalone