nx icon indicating copy to clipboard operation
nx copied to clipboard

`npx nx connect-to-nx-cloud ` failed

Open zqinmiao opened this issue 2 years ago • 1 comments

Current Behavior

Execute npx nx connect-to-nx-cloud, Report the following error,pnpm add -Dw @nrwl/nx-cloud@latest is the same:

✔ Enable distributed caching to make your CI faster · Yes
nx.js connect

Connect workspace to Nx Cloud

Options:
  --help     Show help                                                                                                                                                                      [boolean]
  --version  Show version number                                                                                                                                                            [boolean]

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

Error: Command failed: pnpm add -Dw @nrwl/nx-cloud@latest
    at checkExecSyncError (node:child_process:861:11)
    at execSync (node:child_process:932:15)
    at Object.<anonymous> (/Users/xxx/node_modules/.pnpm/[email protected]/node_modules/nx/src/command-line/connect.js:55:42)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/xxx/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:164:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 1,
  signal: null,
  output: [
    null,
    <Buffer e2 80 89 45 52 52 5f 50 4e 50 4d 5f 50 55 42 4c 49 43 5f 48 4f 49 53 54 5f 50 41 54 54 45 52 4e 5f 44 49 46 46 e2 80 89 20 54 68 69 73 20 6d 6f 64 75 ... 126 more bytes>,
    <Buffer >
  ],
  pid: 52692,
  stdout: <Buffer e2 80 89 45 52 52 5f 50 4e 50 4d 5f 50 55 42 4c 49 43 5f 48 4f 49 53 54 5f 50 41 54 54 45 52 4e 5f 44 49 46 46 e2 80 89 20 54 68 69 73 20 6d 6f 64 75 ... 126 more bytes>,
  stderr: <Buffer >
}

Expected Behavior

Executed successfully.

GitHub Repo

No response

Steps to Reproduce

npx nx connect-to-nx-cloud

Nx Report

>  NX   Report complete - copy this into the issue template

   Node : 16.18.1
   OS   : darwin arm64
   pnpm : 7.18.1
   
   nx              : 15.8.6
   lerna           : 6.5.1
   @nrwl/cli       : 15.8.6
   @nrwl/devkit    : 15.8.6
   @nrwl/tao       : 15.8.6
   @nrwl/nx-cloud  : 16.0.5
   typescript      : 4.9.5

Failure Logs

✔ Enable distributed caching to make your CI faster · Yes
nx.js connect

Connect workspace to Nx Cloud

Options:
  --help     Show help                                                                                                                                                                      [boolean]
  --version  Show version number                                                                                                                                                            [boolean]

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

Error: Command failed: pnpm add -Dw @nrwl/nx-cloud@latest
    at checkExecSyncError (node:child_process:861:11)
    at execSync (node:child_process:932:15)
    at Object.<anonymous> (/Users/xxx/node_modules/.pnpm/[email protected]/node_modules/nx/src/command-line/connect.js:55:42)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/xxx/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:164:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 1,
  signal: null,
  output: [
    null,
    <Buffer e2 80 89 45 52 52 5f 50 4e 50 4d 5f 50 55 42 4c 49 43 5f 48 4f 49 53 54 5f 50 41 54 54 45 52 4e 5f 44 49 46 46 e2 80 89 20 54 68 69 73 20 6d 6f 64 75 ... 126 more bytes>,
    <Buffer >
  ],
  pid: 52692,
  stdout: <Buffer e2 80 89 45 52 52 5f 50 4e 50 4d 5f 50 55 42 4c 49 43 5f 48 4f 49 53 54 5f 50 41 54 54 45 52 4e 5f 44 49 46 46 e2 80 89 20 54 68 69 73 20 6d 6f 64 75 ... 126 more bytes>,
  stderr: <Buffer >
}

Operating System

  • [X] macOS
  • [ ] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

No response

zqinmiao avatar Jul 02 '23 02:07 zqinmiao

What error do you see if you run the command manually?

pnpm add -Dw @nrwl/nx-cloud@latest

AgentEnder avatar Jul 05 '23 20:07 AgentEnder

What error do you see if you run the command manually?

pnpm add -Dw @nrwl/nx-cloud@latest

@AgentEnder

Successfully installed @nrwl/nx-cloud in the project root directory.

Then proceed to npx nx connect-to-nx-cloud and report the same error as above.

zqinmiao avatar Jul 13 '23 01:07 zqinmiao

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Jul 28 '23 00:07 github-actions[bot]

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Sep 11 '23 00:09 github-actions[bot]