Comments (11)
Thanks for the info! I've identified the issue and I'll push a fix.
from nx.
Thanks for reporting this!
Could you please run with --verbose
or NX_VERBOSE_LOGGING=true
and share the error logs? Are you trying to migrate from Nx 18.3.4?
from nx.
Yes, this time from 18.3.4 to 19.0.0. Got same issues with previous updates.
Let me try with added verbose info.
from nx.
I ran this just now (18.3.4->19.0.1). Same error. --verbose didn't output anything more or any error logs.
root@RBIRK:/mnt/d/Git/cloud-ui# npx nx migrate latest --verbose
Failed to install the latest version of the migration script. Using the current version.
...
NX The migrate command has run successfully.
- package.json has been updated.
- There are no migrations to run, so migrations.json has not been created.
from nx.
I see. Could you try running NX_VERBOSE_LOGGING=true npx nx migrate latest
?
from nx.
Got this now:
<ref *1> Error: spawnSync /bin/sh ENOENT
at Object.spawnSync (node:internal/child_process:1117:20)
at spawnSync (node:child_process:876:24)
at execSync (node:child_process:957:15)
at nxCliPath (/mnt/d/Git/cloud-ui/node_modules/nx/src/command-line/migrate/command-object.js:131:46)
at runMigration (/mnt/d/Git/cloud-ui/node_modules/nx/src/command-line/migrate/command-object.js:90:19)
at Object.handler (/mnt/d/Git/cloud-ui/node_modules/nx/src/command-line/migrate/command-object.js:18:9)
at /mnt/d/Git/cloud-ui/node_modules/yargs/build/index.cjs:1:8993
at j (/mnt/d/Git/cloud-ui/node_modules/yargs/build/index.cjs:1:4956)
at _.handleValidationAndGetResult (/mnt/d/Git/cloud-ui/node_modules/yargs/build/index.cjs:1:8962)
at _.applyMiddlewareAndGetResult (/mnt/d/Git/cloud-ui/node_modules/yargs/build/index.cjs:1:9604) {
errno: -2,
code: 'ENOENT',
syscall: 'spawnSync /bin/sh',
path: '/bin/sh',
spawnargs: [ '-c', 'yarn set version 4.0.1' ],
error: [Circular *1],
status: null,
signal: null,
output: null,
pid: 0,
stdout: null,
stderr: null
}
from nx.
I tried directly in windows terminal and got same error. In the past migration has never worked well directly in windows, and why I switched to WSL.
Just in case, this is the difference from error above on windows. The rest of the error is identical.
errno: -4058,
code: 'ENOENT',
syscall: 'spawnSync C:\\WINDOWS\\system32\\cmd.exe',
path: 'C:\\WINDOWS\\system32\\cmd.exe',
spawnargs: [ '/d', '/s', '/c', '"yarn set version 4.0.1"' ],
from nx.
I still get the same error updating to 19.0.2.
Maybe the fix didn't make it? The release notes seem to indicate it did and why I tried.
from nx.
@leosvelperez getting same error in my WSL ubuntu env too with 19.0.2
from nx.
@rbirkgit it will still happen until you're migrated to Nx 19.0.2. After that, the error will go away. The reason is that the version you have installed has the issue. Only when you have Nx 19.0.2 (the version with the fix), the issue will go away.
from nx.
That explains it! Thanks!
from nx.
Related Issues (20)
- `ProjectsWithNoNameError` error after updating to v19
- skipRemotes option broken when a remote does not live in the same workspace as the host
- @nx/js:tsc force changed my package type from "module" to "commonjs"
- nx:run-commands executor ignore envFile option
- Nx run lint is verbose
- Cypress component testing restricts executor after migrating to 19 from 17 HOT 1
- Handling CTRL+C (SIGINT) in an executor does not work anymore after upgrading NX
- nx g lib creates invalid dependencies in package.json HOT 2
- nx is not supported on ppc64le (power architecture) HOT 1
- I am getting error after upgrading expo version to latest that is 51 and react-native to 74 HOT 1
- "implicitDependencies" option adds every project as implicit dependency HOT 1
- Installation doesn't work on multi-user computers HOT 1
- Error while creating expo app
- Android build failing in Expo App
- Error when running nx dev with pnpm template
- nx-release-publish fails if workspace file path contains a space
- Add documentation on filtering projects by tag in `nx show projects`
- Debugging nx/nest applications does not work out of the box
- `nx repair` generates diff due to incorrect formatting
- Local-executor generation of plugin for "Write a Simple Executor"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.