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

Crash on first install #182

Closed
5 tasks done
Dimava opened this issue Nov 14, 2023 · 0 comments · Fixed by #186
Closed
5 tasks done

Crash on first install #182

Dimava opened this issue Nov 14, 2023 · 0 comments · Fixed by #186

Comments

@Dimava
Copy link
Contributor

Dimava commented Nov 14, 2023

Describe the bug

I've just installed nvs/node/pnpm/ni on clean Windows PC

PS C:\Dev\AHK> ni -v
@antfu/ni  v0.21.9
node:internal/fs/sync:25
  return binding.readFileUtf8(path, stringToFlags(flag));
                 ^

Error: ENOENT: no such file or directory, open 'C:\Users\Dimava\.nirc'
    at Object.readFileUtf8 (node:internal/fs/sync:25:18)
    at Object.readFileSync (node:fs:441:19)
    at getConfig (file:///C:/Users/Dimava/AppData/Local/pnpm/global/5/.pnpm/@antfu+ni@0.21.9/node_modules/@antfu/ni/dist/shared/ni.d43835c0.mjs:6716:66)
    at async getGlobalAgent (file:///C:/Users/Dimava/AppData/Local/pnpm/global/5/.pnpm/@antfu+ni@0.21.9/node_modules/@antfu/ni/dist/shared/ni.d43835c0.mjs:6727:27) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\Dimava\\.nirc'
}

Node.js v20.9.0
PS C:\Dev\AHK>

Reproduction

Delete .nirc

System Info

Clean Windows 11
  System:
    OS: Windows 11 10.0.22621
    CPU: (4) x64 Intel(R) N95
    Memory: 1.41 GB / 11.75 GB
  Binaries:
    Node: 20.9.0 - ~\AppData\Local\nvs\default\node.EXE
    Yarn: 1.22.21 - ~\AppData\Local\nvs\default\yarn.CMD
    npm: 10.1.0 - ~\AppData\Local\nvs\default\npm.CMD
    pnpm: 8.10.5 - ~\AppData\Local\nvs\default\pnpm.CMD

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
a1mersnow added a commit to a1mersnow/ni that referenced this issue Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant