IanVS / prettier-plugin-sort-imports

An opinionated but flexible prettier plugin to sort import statements
Apache License 2.0
984 stars 25 forks source link

`yarn test` failed to run on Windows #133

Closed Tanimodori closed 12 months ago

Tanimodori commented 12 months ago

Your Environment

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