Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to nx cloud #3924

Open
zhangyi921 opened this issue Dec 20, 2023 · 0 comments
Open

Can't connect to nx cloud #3924

zhangyi921 opened this issue Dec 20, 2023 · 0 comments

Comments

@zhangyi921
Copy link

Current Behavior

/code # npx nx connect-to-nx-cloud
✔ Enable distributed caching to make your CI faster · Yes
yarn run v1.22.19
$ /code/node_modules/.bin/nx g nx:connect-to-nx-cloud --quiet --no-interactive

 >  NX   Cannot read properties of null (reading 'neverConnectToCloud')

   Pass --verbose to see the stacktrace.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nx connect

Connect workspace to Nx Cloud

Options:
  --help         Show help                                                                                                                                                   [boolean]
  --version      Show version number                                                                                                                                         [boolean]
  --interactive  Prompt for confirmation                                                                                                                     [boolean] [default: true]

Find more information and examples at https://nx.dev/nx/connect-to-nx-cloud

Error: Command failed: yarn nx g nx:connect-to-nx-cloud --quiet --no-interactive
    at checkExecSyncError (node:child_process:885:11)
    at execSync (node:child_process:957:15)
    at runNxSync (/code/node_modules/nx/src/utils/child-process.js:25:34)
    at Object.connectToNxCloudCommand (/code/node_modules/nx/src/command-line/connect/connect-to-nx-cloud.js:55:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.handler (/code/node_modules/nx/src/command-line/connect/command-object.js:15:9) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 853662,
  stdout: null,
  stderr: null
}

Expected Behavior

It should connect to nx cloud

Steps to Reproduce

  1. create an empty folder
  2. cd in the folder and run npx lerna init
  3. run npx nx connect-to-nx-cloud
  4. The error happens

This issue may not be prioritized if details are not provided to help us reproduce the issue.

Failure Logs / Configuration

lerna.json

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "0.0.0"
}

Environment

lerna notice cli v8.0.1

Environment info:

System:
OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn
npm: 10.2.5 - ~/.nvm/versions/node/v18.17.0/bin/npm
Utilities:
Git: 2.34.1 - /usr/bin/git
npmPackages:
lerna: ^8.0.1 => 8.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant