Open
Description
I just cloned the repository and these commands.
- npm i
- npm test (this one failed with the output below)
PS Z:\git\eslint-plugin-import> npm test
> eslint-plugin-import@2.27.5 pretest
> linklocal
tests\files\order-redirect
resolvers\webpack
tests\files\symlinked-module
tests\files\order-redirect-scoped
utils
resolvers\node
Linked 6 dependencies
> eslint-plugin-import@2.27.5 test
> npm run tests-only
> eslint-plugin-import@2.27.5 tests-only
> npm run mocha tests/src
> eslint-plugin-import@2.27.5 mocha
> cross-env BABEL_ENV=test nyc mocha tests/src
Z:\git\eslint-plugin-import\node_modules\babel-core\lib\transformation\file\options\build-config-chain.js:154
throw err;
^
SyntaxError: Z:\git\eslint-plugin-import\resolvers\webpack\.babelrc: Error while parsing JSON - Bad number at line 1 column 3 of the JSON5 data. Still to read: "./../.babelrc"
at error (Z:\git\eslint-plugin-import\node_modules\json5\lib\json5.js:56:25)
at number (Z:\git\eslint-plugin-import\node_modules\json5\lib\json5.js:212:17)
at value (Z:\git\eslint-plugin-import\node_modules\json5\lib\json5.js:491:20)
at Object.parse (Z:\git\eslint-plugin-import\node_modules\json5\lib\json5.js:508:18)
at ConfigChainBuilder.addConfig (Z:\git\eslint-plugin-import\node_modules\babel-core\lib\transformation\file\options\build-config-chain.js:150:65)
at ConfigChainBuilder.findConfigs (Z:\git\eslint-plugin-import\node_modules\babel-core\lib\transformation\file\options\build-config-chain.js:96:16)
at buildConfigChain (Z:\git\eslint-plugin-import\node_modules\babel-core\lib\transformation\file\options\build-config-chain.js:61:13)
at OptionManager.init (Z:\git\eslint-plugin-import\node_modules\babel-core\lib\transformation\file\options\option-manager.js:354:58)
at compile (Z:\git\eslint-plugin-import\node_modules\babel-register\lib\node.js:103:45)
at loader (Z:\git\eslint-plugin-import\node_modules\babel-register\lib\node.js:144:14) {
at: 2,
lineNumber: 1,
columnNumber: 3
}
Node.js v18.11.0
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn nyc ENOENT
at notFoundError (Z:\git\eslint-plugin-import\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (Z:\git\eslint-plugin-import\node_modules\cross-spawn\lib\enoent.js:46:16)
at cp.emit (Z:\git\eslint-plugin-import\node_modules\cross-spawn\lib\enoent.js:33:19)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Emitted 'error' event on ChildProcess instance at:
at cp.emit (Z:\git\eslint-plugin-import\node_modules\cross-spawn\lib\enoent.js:36:37)
at ChildProcess._handle.onexit (node:internal/child_process:291:12) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn nyc'
}
Node.js v18.11.0
Specs:
windows 11
node 18.11.0
npm 9.4.0