eslint / js

Monorepo for the JS language tools.
BSD 2-Clause "Simplified" License
2.28k stars 196 forks source link

Bug: Can't install monorepo #630

Closed nzakas closed 19 minutes ago

nzakas commented 1 day ago

Which packages are affected?

Environment

Node version: 20.13.1 npm version: 10.4.0 ESLint version: 9.4.0 Operating System: Windows

What did you do?

Cloned the repository and ran npm install

What did you expect to happen?

For the monorepo to install successfully.

What actually happened?

I received this error message:

npm ERR! > eslint-visitor-keys@4.0.0 build:types
npm ERR! > tsc
npm ERR!
npm ERR! ../../node_modules/@types/node/stream/web.d.ts(469,56): error TS1005: '?' expected.
npm ERR! tsconfig.json(3,13): error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 
'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 
'es2019.string', 'es2019.symbol', 'es2020.bigint', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref'.

Link to Minimal Reproducible Example

https://github.com/eslint/js

Participation

Additional comments

No response

nzakas commented 1 day ago

Figured it out. Lots of dependencies are out of date and clashing with dependencies in other packages.

mdjermanovic commented 19 minutes ago

Fixed by https://github.com/eslint/js/pull/631.

It also fixed CI in eslint/eslint.