Git Product home page Git Product logo

Comments (11)

leosvelperez avatar leosvelperez commented on June 3, 2024 1

Thanks for the info! I've identified the issue and I'll push a fix.

from nx.

leosvelperez avatar leosvelperez commented on June 3, 2024

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.

rbirkgit avatar rbirkgit commented on June 3, 2024

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.

rbirkgit avatar rbirkgit commented on June 3, 2024

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.

leosvelperez avatar leosvelperez commented on June 3, 2024

I see. Could you try running NX_VERBOSE_LOGGING=true npx nx migrate latest?

from nx.

rbirkgit avatar rbirkgit commented on June 3, 2024

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.

rbirkgit avatar rbirkgit commented on June 3, 2024

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.

rbirkgit avatar rbirkgit commented on June 3, 2024

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.

rbirkgit avatar rbirkgit commented on June 3, 2024

@leosvelperez getting same error in my WSL ubuntu env too with 19.0.2

from nx.

leosvelperez avatar leosvelperez commented on June 3, 2024

@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.

rbirkgit avatar rbirkgit commented on June 3, 2024

That explains it! Thanks!

from nx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.