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

yarn create turbo failing on strict windows #7880

Closed
1 task done
antokhio opened this issue Apr 2, 2024 · 4 comments · Fixed by #7881
Closed
1 task done

yarn create turbo failing on strict windows #7880

antokhio opened this issue Apr 2, 2024 · 4 comments · Fixed by #7881
Assignees
Labels
kind: bug Something isn't working owned-by: turborepo pkg: create-turbo Issues related to npx create-turbo

Comments

@antokhio
Copy link

antokhio commented Apr 2, 2024

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

yarn create turbo

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Windows

Which canary version will you have in your reproduction?

can't init

Describe the Bug

Hello, i'm trying to init turbo repo on some corporate laptop with some restricted policies, i'm getting this error:

>>> Unexpected error. Please report it as a bug:
Error: ENOENT: no such file or directory, open 'C:\Users\user\AppData\Roaming\turborepo\telemetry.json'
    at Object.openSync (node:fs:603:3)
    at readFileSync (node:fs:471:35)
    at xr.fromDefaultConfig (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\create-turbo\dist\cli.js:54:1346)
    at async Lm (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\create-turbo\dist\cli.js:54:6235)
    at async Object.callback (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\create-turbo\dist\cli.js:87:3415)
    at async Command.parseAsync (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\create-turbo\node_modules\commander\lib\command.js:935:5) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'C:\\Users\\user\\AppData\\Roaming\\turborepo\\telemetry.json'
}

Suspect the issue is it can't create telemetry.json without admin rights...

Expected Behavior

turbo catches error

To Reproduce

no clue really, seems needs Group Policy of some kind...

Additional context

No response

@antokhio antokhio added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Apr 2, 2024
@iAverages
Copy link

iAverages commented Apr 2, 2024

Also happens with npx create-turbo@latest on Windows 10

npx create-turbo@latest
Need to install the following packages:
create-turbo@1.13.1
Ok to proceed? (y) y

>>> Unexpected error. Please report it as a bug:
Error: ENOENT: no such file or directory, open 'C:\Users\user\AppData\Roaming\turborepo\telemetry.json'
    at Object.openSync (node:fs:603:3)
    at readFileSync (node:fs:471:35)
    at xr.fromDefaultConfig (C:\Users\user\scoop\persist\nodejs-lts\cache\_npx\e8c68b66aeb1424f\node_modules\create-turbo\dist\cli.js:54:1346)
    at async Lm (C:\Users\user\scoop\persist\nodejs-lts\cache\_npx\e8c68b66aeb1424f\node_modules\create-turbo\dist\cli.js:54:6235)
    at async Object.callback (C:\Users\user\scoop\persist\nodejs-lts\cache\_npx\e8c68b66aeb1424f\node_modules\create-turbo\dist\cli.js:87:3415)
    at async Command.parseAsync (C:\Users\user\scoop\persist\nodejs-lts\cache\_npx\e8c68b66aeb1424f\node_modules\commander\lib\command.js:935:5) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'C:\\Users\\user\\AppData\\Roaming\\turborepo\\telemetry.json'
}

Confirmed create-turbo@1.13.1-canary.3 to be working.

@arlyon
Copy link
Contributor

arlyon commented Apr 2, 2024

Hi, thanks for the report. We are looking at this now.

Edit: PR up now. We hope to get a patch out with this asap.

@tknickman tknickman self-assigned this Apr 2, 2024
@tknickman tknickman added pkg: create-turbo Issues related to npx create-turbo and removed needs: triage New issues get this label. Remove it after triage labels Apr 2, 2024
tknickman added a commit that referenced this issue Apr 2, 2024
### Description

If something goes wrong with telemetry init (bad file, bad perms etc.)
we shouldn't error, just proceed without.

Fixes #7880

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes TURBO-2744
@tknickman
Copy link
Member

Patch should be available in around 20 minutes, I will update here when it's available. Thanks!

@tknickman
Copy link
Member

Should be available now as create-turbo@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working owned-by: turborepo pkg: create-turbo Issues related to npx create-turbo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants