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 test failed to run on Windows #133

Closed
1 task done
Tanimodori opened this issue Oct 12, 2023 · 0 comments · Fixed by #134
Closed
1 task done

yarn test failed to run on Windows #133

Tanimodori opened this issue Oct 12, 2023 · 0 comments · Fixed by #134
Assignees

Comments

@Tanimodori
Copy link
Contributor

Tanimodori commented Oct 12, 2023

Your Environment

  • Prettier version: N/A
  • node version: 16.19.0
  • package manager: 1.22.19
  • IDE: VScode

Since the env described above does not includes OS info, the output of command npx envinfo --system --npmPackages --binaries is attached here:

  System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 6.70 GB / 15.69 GB
  Binaries:
    Node: 16.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.6.6 - C:\Program Files\nodejs\npm.CMD
    pnpm: 7.32.0 - ~\AppData\Local\pnpm\pnpm.CMD
  npmPackages:
    @babel/core: ^7.21.8 => 7.21.8
    @babel/generator: ^7.21.5 => 7.21.5
    @babel/parser: ^7.21.8 => 7.21.8
    @babel/traverse: ^7.21.5 => 7.21.5
    @babel/types: ^7.21.5 => 7.21.5
    @types/babel__generator: ^7.6.4 => 7.6.4
    @types/babel__traverse: ^7.18.3 => 7.18.5
    @types/node: ^18.15.13 => 18.16.7
    @types/prettier: ^2.7.2 => 2.7.2
    @types/semver: ^7.3.13 => 7.5.0
    @vue/compiler-sfc: 3.2.47 => 3.2.47
    prettier: ^3.0.0 => 3.0.0
    semver: ^7.5.2 => 7.5.4
    typescript: 5.0.4 => 5.0.4
    vitest: ^0.30.1 => 0.30.1

Describe the bug

PS C:\path\to\prettier-plugin-sort-imports> yarn test
yarn run v1.22.19
$ NODE_OPTIONS=--experimental-vm-modules vitest --run
'NODE_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce

Clone the git on windows, yarn and yarn test

Expected behavior

The yarn test should work.

Screenshots, code sample, etc

N/A

Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)

N/A

Error log

See above.

Contribute to @ianvs/prettier-plugin-sort-imports

  • I'm willing to fix this bug 🥇
Tanimodori added a commit to Tanimodori/ianvs-prettier-plugin-sort-imports that referenced this issue Oct 12, 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.

2 participants