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

npm error Unable to resolve reference $eslint #17832

Closed
7 tasks done
jsjoeio opened this issue Aug 7, 2024 · 5 comments · Fixed by #17833
Closed
7 tasks done

npm error Unable to resolve reference $eslint #17832

jsjoeio opened this issue Aug 7, 2024 · 5 comments · Fixed by #17833
Labels
p4-important Violate documented behavior or significantly improves performance (priority) regression The issue only appears after a new release

Comments

@jsjoeio
Copy link

jsjoeio commented Aug 7, 2024

Describe the bug

I am creating a new repo using the react-ts template.

I'm expecting to run npm install to install deps.

I am getting an unexpected error.

My original logs:

➜  dev npm create vite@latest scrtch-ppr -- --template react-ts
Need to install the following packages:
[email protected]
Ok to proceed? (y) y


> npx
> create-vite scrtch-ppr --template react-ts


Scaffolding project in /home/jsjoeio/dev/scrtch-ppr...

Done. Now run:

  cd scrtch-ppr
  npm install
  npm run dev

npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
npm notice To update run: npm install -g [email protected]
npm notice
➜  dev cd scrtch-ppr
➜  scrtch-ppr npmm i
zsh: command not found: npmm
➜  scrtch-ppr npm i
npm error Unable to resolve reference $eslint

npm error A complete log of this run can be found in: /home/jsjoeio/.npm/_logs/2024-08-07T15_36_41_962Z-debug-0.log
➜  scrtch-ppr npm i
npm error Unable to resolve reference $eslint

npm error A complete log of this run can be found in: /home/jsjoeio/.npm/_logs/2024-08-07T15_37_04_735Z-debug-0.log

Reproduction

https://github.com/jsjoeio/vite-issue-eslint

Steps to reproduce

npm create vite@latest hello-world -- --template react-ts
cd hello-world
npm install

System Info

System:
    OS: Linux 5.10 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 5.56 GB / 7.66 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
    bun: 1.1.20 - ~/.bun/bin/bun

Used Package Manager

npm

Logs

Click to expand!
0 verbose cli /home/jsjoeio/.nvm/versions/node/v20.15.0/bin/node /home/jsjoeio/.nvm/versions/node/v20.15.0/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config:load:file:/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/npmrc
4 silly config:load:file:/home/jsjoeio/dev/scrtch-ppr/.npmrc
5 silly config:load:file:/home/jsjoeio/.npmrc
6 silly config:load:file:/home/jsjoeio/.nvm/versions/node/v20.15.0/etc/npmrc
7 verbose title npm i
8 verbose argv "i"
9 verbose logfile logs-max:10 dir:/home/jsjoeio/.npm/_logs/2024-08-07T15_43_46_028Z-
10 verbose logfile /home/jsjoeio/.npm/_logs/2024-08-07T15_43_46_028Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly idealTree buildDeps
14 silly fetch manifest react@^18.3.1
15 http fetch GET 200 https://registry.npmjs.org/react 20ms (cache hit)
16 silly fetch manifest react-dom@^18.3.1
17 http fetch GET 200 https://registry.npmjs.org/react-dom 14ms (cache hit)
18 silly fetch manifest @eslint/js@^9.8.0
19 http fetch GET 200 https://registry.npmjs.org/@eslint%2fjs 6ms (cache hit)
20 silly fetch manifest @types/react@^18.3.3
21 http fetch GET 200 https://registry.npmjs.org/@types%2freact 12ms (cache hit)
22 silly fetch manifest @types/react-dom@^18.3.0
23 http fetch GET 200 https://registry.npmjs.org/@types%2freact-dom 4ms (cache hit)
24 silly fetch manifest @vitejs/plugin-react@^4.3.1
25 http fetch GET 200 https://registry.npmjs.org/@vitejs%2fplugin-react 3ms (cache hit)
26 silly fetch manifest vite@^5.4.0
27 http fetch GET 200 https://registry.npmjs.org/vite 58ms (cache hit)
28 silly fetch manifest @types/node@^18.0.0 || >=20.0.0
29 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 20ms (cache hit)
30 silly fetch manifest less@*
31 http fetch GET 200 https://registry.npmjs.org/less 15ms (cache hit)
32 silly fetch manifest lightningcss@^1.21.0
33 http fetch GET 200 https://registry.npmjs.org/lightningcss 3ms (cache hit)
34 silly fetch manifest sass@*
35 http fetch GET 200 https://registry.npmjs.org/sass 5ms (cache hit)
36 silly fetch manifest sass-embedded@*
37 http fetch GET 200 https://registry.npmjs.org/sass-embedded 4ms (cache hit)
38 silly fetch manifest stylus@*
39 http fetch GET 200 https://registry.npmjs.org/stylus 3ms (cache hit)
40 silly fetch manifest sugarss@*
41 http fetch GET 200 https://registry.npmjs.org/sugarss 3ms (cache hit)
42 silly fetch manifest postcss@^8.3.3
43 http fetch GET 200 https://registry.npmjs.org/postcss 5ms (cache hit)
44 silly fetch manifest terser@^5.4.0
45 http fetch GET 200 https://registry.npmjs.org/terser 4ms (cache hit)
46 silly fetch manifest eslint@^9.8.0
47 http fetch GET 200 https://registry.npmjs.org/eslint 6ms (cache hit)
48 silly fetch manifest eslint-plugin-react-hooks@^5.1.0-rc.0
49 http fetch GET 200 https://registry.npmjs.org/eslint-plugin-react-hooks 11ms (cache hit)
50 silly fetch manifest eslint-plugin-react-refresh@^0.4.9
51 http fetch GET 200 https://registry.npmjs.org/eslint-plugin-react-refresh 4ms (cache hit)
52 silly fetch manifest globals@^15.9.0
53 http fetch GET 200 https://registry.npmjs.org/globals 4ms (cache hit)
54 silly fetch manifest typescript@^5.5.3
55 http fetch GET 200 https://registry.npmjs.org/typescript 27ms (cache hit)
56 silly fetch manifest typescript-eslint@^8.0.0
57 http fetch GET 200 https://registry.npmjs.org/typescript-eslint 11ms (cache hit)
58 silly placeDep ROOT @eslint/[email protected] REPLACE for: [email protected] want: ^9.8.0
59 silly placeDep ROOT @types/[email protected] REPLACE for: [email protected] want: ^18.3.3
60 silly placeDep ROOT @types/[email protected] REPLACE for: [email protected] want: ^18.3.0
61 silly placeDep ROOT @vitejs/[email protected] REPLACE for: [email protected] want: ^4.3.1
62 silly placeDep ROOT [email protected] OK for: @vitejs/[email protected] want: ^4.2.0 || ^5.0.0
63 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^9.8.0
64 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^5.1.0-rc.0
65 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^0.4.9
66 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^15.9.0
67 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^18.3.1
68 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^18.3.1
69 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^5.5.3
70 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^8.0.0
71 silly fetch manifest csstype@^3.0.2
72 silly fetch manifest @babel/core@^7.24.5
73 silly fetch manifest @babel/plugin-transform-react-jsx-self@^7.24.5
74 silly fetch manifest @babel/plugin-transform-react-jsx-source@^7.24.1
75 silly fetch manifest @types/babel__core@^7.20.5
76 silly fetch manifest react-refresh@^0.14.2
77 silly fetch manifest esbuild@^0.21.3
78 silly fetch manifest postcss@^8.4.40
79 silly fetch manifest rollup@^4.13.0
80 silly fetch manifest fsevents@~2.3.3
81 silly fetch manifest @eslint-community/eslint-utils@^4.2.0
82 silly fetch manifest @eslint-community/regexpp@^4.11.0
83 http fetch GET 200 https://registry.npmjs.org/csstype 23ms (cache hit)
84 silly fetch manifest @eslint/config-array@^0.17.1
85 http fetch GET 200 https://registry.npmjs.org/@babel%2fplugin-transform-react-jsx-self 25ms (cache hit)
86 silly fetch manifest @eslint/eslintrc@^3.1.0
87 http fetch GET 200 https://registry.npmjs.org/@babel%2fcore 28ms (cache hit)
88 silly fetch manifest @humanwhocodes/module-importer@^1.0.1
89 http fetch GET 200 https://registry.npmjs.org/@types%2fbabel__core 30ms (cache hit)
90 silly fetch manifest @humanwhocodes/retry@^0.3.0
91 http fetch GET 200 https://registry.npmjs.org/@babel%2fplugin-transform-react-jsx-source 33ms (cache hit)
92 silly fetch manifest @nodelib/fs.walk@^1.2.8
93 http fetch GET 200 https://registry.npmjs.org/fsevents 32ms (cache hit)
94 silly fetch manifest ajv@^6.12.4
95 http fetch GET 200 https://registry.npmjs.org/@eslint-community%2feslint-utils 34ms (cache hit)
96 silly fetch manifest chalk@^4.0.0
97 http fetch GET 200 https://registry.npmjs.org/rollup 43ms (cache hit)
98 silly fetch manifest cross-spawn@^7.0.2
99 http fetch GET 200 https://registry.npmjs.org/esbuild 82ms (cache hit)
100 silly fetch manifest debug@^4.3.2
101 http fetch GET 200 https://registry.npmjs.org/@eslint-community%2fregexpp 93ms (cache hit)
102 silly fetch manifest escape-string-regexp@^4.0.0
103 http fetch GET 200 https://registry.npmjs.org/react-refresh 105ms (cache hit)
104 silly fetch manifest eslint-scope@^8.0.2
105 http fetch GET 200 https://registry.npmjs.org/@eslint%2fconfig-array 120ms (cache hit)
106 silly fetch manifest eslint-visitor-keys@^4.0.0
107 http fetch GET 200 https://registry.npmjs.org/@humanwhocodes%2fmodule-importer 114ms (cache hit)
108 silly fetch manifest espree@^10.1.0
109 http fetch GET 200 https://registry.npmjs.org/@eslint%2feslintrc 120ms (cache hit)
110 silly fetch manifest esquery@^1.5.0
111 http fetch GET 200 https://registry.npmjs.org/@humanwhocodes%2fretry 116ms (cache hit)
112 silly fetch manifest esutils@^2.0.2
113 http fetch GET 200 https://registry.npmjs.org/cross-spawn 67ms (cache hit)
114 silly fetch manifest fast-deep-equal@^3.1.3
115 http fetch GET 200 https://registry.npmjs.org/@nodelib%2ffs.walk 116ms (cache hit)
116 silly fetch manifest file-entry-cache@^8.0.0
117 http fetch GET 200 https://registry.npmjs.org/debug 61ms (cache hit)
118 silly fetch manifest find-up@^5.0.0
119 http fetch GET 200 https://registry.npmjs.org/escape-string-regexp 55ms (cache hit)
120 silly fetch manifest glob-parent@^6.0.2
121 http fetch GET 200 https://registry.npmjs.org/chalk 117ms (cache hit)
122 silly fetch manifest ignore@^5.2.0
123 http fetch GET 200 https://registry.npmjs.org/ajv 123ms (cache hit)
124 silly fetch manifest imurmurhash@^0.1.4
125 http fetch GET 200 https://registry.npmjs.org/eslint-scope 51ms (cache hit)
126 silly fetch manifest is-glob@^4.0.0
127 http fetch GET 200 https://registry.npmjs.org/eslint-visitor-keys 45ms (cache hit)
128 silly fetch manifest is-path-inside@^3.0.3
129 http fetch GET 200 https://registry.npmjs.org/espree 46ms (cache hit)
130 silly fetch manifest json-stable-stringify-without-jsonify@^1.0.1
131 http fetch GET 200 https://registry.npmjs.org/esquery 46ms (cache hit)
132 silly fetch manifest levn@^0.4.1
133 http fetch GET 200 https://registry.npmjs.org/esutils 47ms (cache hit)
134 silly fetch manifest lodash.merge@^4.6.2
135 http fetch GET 200 https://registry.npmjs.org/file-entry-cache 45ms (cache hit)
136 silly fetch manifest minimatch@^3.1.2
137 http fetch GET 200 https://registry.npmjs.org/find-up 44ms (cache hit)
138 silly fetch manifest natural-compare@^1.4.0
139 http fetch GET 200 https://registry.npmjs.org/fast-deep-equal 49ms (cache hit)
140 silly fetch manifest optionator@^0.9.3
141 http fetch GET 200 https://registry.npmjs.org/glob-parent 45ms (cache hit)
142 silly fetch manifest strip-ansi@^6.0.1
143 http fetch GET 200 https://registry.npmjs.org/ignore 48ms (cache hit)
144 silly fetch manifest text-table@^0.2.0
145 http fetch GET 200 https://registry.npmjs.org/imurmurhash 35ms (cache hit)
146 silly fetch manifest loose-envify@^1.1.0
147 http fetch GET 200 https://registry.npmjs.org/is-glob 34ms (cache hit)
148 silly fetch manifest scheduler@^0.23.2
149 http fetch GET 200 https://registry.npmjs.org/is-path-inside 37ms (cache hit)
150 http fetch GET 200 https://registry.npmjs.org/json-stable-stringify-without-jsonify 35ms (cache hit)
151 silly fetch manifest @typescript-eslint/[email protected]
152 http fetch GET 200 https://registry.npmjs.org/levn 35ms (cache hit)
153 silly fetch manifest @typescript-eslint/[email protected]
154 http fetch GET 200 https://registry.npmjs.org/lodash.merge 34ms (cache hit)
155 silly fetch manifest @typescript-eslint/[email protected]
156 http fetch GET 200 https://registry.npmjs.org/natural-compare 33ms (cache hit)
157 http fetch GET 200 https://registry.npmjs.org/minimatch 36ms (cache hit)
158 http fetch GET 200 https://registry.npmjs.org/strip-ansi 31ms (cache hit)
159 http fetch GET 200 https://registry.npmjs.org/loose-envify 29ms (cache hit)
160 http fetch GET 200 https://registry.npmjs.org/text-table 31ms (cache hit)
161 http fetch GET 200 https://registry.npmjs.org/optionator 39ms (cache hit)
162 http fetch GET 200 https://registry.npmjs.org/scheduler 35ms (cache hit)
163 http fetch GET 200 https://registry.npmjs.org/@typescript-eslint%2futils 68ms (cache hit)
164 http fetch GET 200 https://registry.npmjs.org/@typescript-eslint%2fparser 112ms (cache hit)
165 http fetch GET 200 https://registry.npmjs.org/@typescript-eslint%2feslint-plugin 186ms (cache hit)
166 silly placeDep ROOT [email protected] OK for: @types/[email protected] want: ^3.0.2
167 silly placeDep ROOT @babel/[email protected] OK for: @vitejs/[email protected] want: ^7.24.5
168 silly placeDep ROOT @babel/[email protected] OK for: @vitejs/[email protected] want: ^7.24.5
169 silly placeDep ROOT @babel/[email protected] OK for: @vitejs/[email protected] want: ^7.24.1
170 silly placeDep ROOT @types/[email protected] OK for: @vitejs/[email protected] want: ^7.20.5
171 silly placeDep ROOT [email protected] OK for: @vitejs/[email protected] want: ^0.14.2
172 silly fetch manifest @ampproject/remapping@^2.2.0
173 silly fetch manifest @babel/code-frame@^7.24.7
174 silly fetch manifest @babel/generator@^7.25.0
175 silly fetch manifest @babel/helper-compilation-targets@^7.25.2
176 silly fetch manifest @babel/helper-module-transforms@^7.25.2
177 silly fetch manifest @babel/helpers@^7.25.0
178 silly fetch manifest @babel/parser@^7.25.0
179 silly fetch manifest @babel/template@^7.25.0
180 silly fetch manifest @babel/traverse@^7.25.2
181 silly fetch manifest @babel/types@^7.25.2
182 silly fetch manifest convert-source-map@^2.0.0
183 http fetch GET 200 https://registry.npmjs.org/@ampproject%2fremapping 23ms (cache hit)
184 silly fetch manifest debug@^4.1.0
185 silly fetch manifest gensync@^1.0.0-beta.2
186 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-module-transforms 24ms (cache hit)
187 silly fetch manifest json5@^2.2.3
188 http fetch GET 200 https://registry.npmjs.org/@babel%2ftemplate 22ms (cache hit)
189 silly fetch manifest semver@^6.3.1
190 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-compilation-targets 29ms (cache hit)
191 silly fetch manifest @babel/helper-plugin-utils@^7.24.7
192 http fetch GET 200 https://registry.npmjs.org/@babel%2ftypes 25ms (cache hit)
193 http fetch GET 200 https://registry.npmjs.org/@babel%2ftraverse 27ms (cache hit)
194 silly fetch manifest @babel/types@^7.20.7
195 silly fetch manifest @babel/parser@^7.20.7
196 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelpers 36ms (cache hit)
197 http fetch GET 200 https://registry.npmjs.org/@babel%2fparser 34ms (cache hit)
198 http fetch GET 200 https://registry.npmjs.org/convert-source-map 38ms (cache hit)
199 http fetch GET 200 https://registry.npmjs.org/@babel%2fcode-frame 49ms (cache hit)
200 http fetch GET 200 https://registry.npmjs.org/@babel%2fgenerator 51ms (cache hit)
201 http fetch GET 200 https://registry.npmjs.org/gensync 36ms (cache hit)
202 http fetch GET 200 https://registry.npmjs.org/semver 32ms (cache hit)
203 http fetch GET 200 https://registry.npmjs.org/@babel%2fparser 27ms (cache hit)
204 http fetch GET 200 https://registry.npmjs.org/json5 41ms (cache hit)
205 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-plugin-utils 42ms (cache hit)
206 silly fetch manifest @babel/core@^7.0.0
207 silly placeDep ROOT @ampproject/[email protected] OK for: @babel/[email protected] want: ^2.2.0
208 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
209 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.0
210 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.2
211 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.2
212 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.0
213 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.0
214 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.0
215 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.2
216 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.2
217 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^2.0.0
218 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^4.1.0
219 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^1.0.0-beta.2
220 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^2.2.3
221 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^6.3.1
222 silly fetch manifest @jridgewell/gen-mapping@^0.3.5
223 silly fetch manifest @jridgewell/trace-mapping@^0.3.24
224 silly fetch manifest picocolors@^1.0.0
225 silly fetch manifest @babel/highlight@^7.24.7
226 silly fetch manifest jsesc@^2.5.1
227 silly fetch manifest @babel/types@^7.25.0
228 silly fetch manifest @jridgewell/trace-mapping@^0.3.25
229 silly fetch manifest @babel/compat-data@^7.25.2
230 silly fetch manifest @babel/helper-validator-option@^7.24.8
231 silly fetch manifest browserslist@^4.23.1
232 silly fetch manifest lru-cache@^5.1.1
233 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2fgen-mapping 21ms (cache hit)
234 silly fetch manifest @babel/helper-module-imports@^7.24.7
235 silly fetch manifest @babel/helper-simple-access@^7.24.7
236 http fetch GET 200 https://registry.npmjs.org/@babel%2fhighlight 23ms (cache hit)
237 silly fetch manifest @babel/helper-validator-identifier@^7.24.7
238 http fetch GET 200 https://registry.npmjs.org/picocolors 25ms (cache hit)
239 silly fetch manifest debug@^4.3.1
240 silly fetch manifest globals@^11.1.0
241 silly fetch manifest @babel/helper-string-parser@^7.24.8
242 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2ftrace-mapping 26ms (cache hit)
243 http fetch GET 200 https://registry.npmjs.org/@babel%2fcompat-data 27ms (cache hit)
244 silly fetch manifest to-fast-properties@^2.0.0
245 http fetch GET 200 https://registry.npmjs.org/browserslist 28ms (cache hit)
246 silly fetch manifest [email protected]
247 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-validator-option 37ms (cache hit)
248 http fetch GET 200 https://registry.npmjs.org/jsesc 39ms (cache hit)
249 http fetch GET 200 https://registry.npmjs.org/lru-cache 39ms (cache hit)
250 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2ftrace-mapping 50ms (cache hit)
251 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-simple-access 53ms (cache hit)
252 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-module-imports 55ms (cache hit)
253 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-validator-identifier 57ms (cache hit)
254 http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-string-parser 55ms (cache hit)
255 http fetch GET 200 https://registry.npmjs.org/ms 45ms (cache hit)
256 http fetch GET 200 https://registry.npmjs.org/to-fast-properties 54ms (cache hit)
257 silly placeDep ROOT @jridgewell/[email protected] OK for: @ampproject/[email protected] want: ^0.3.5
258 silly placeDep ROOT @jridgewell/[email protected] OK for: @ampproject/[email protected] want: ^0.3.24
259 silly fetch manifest @jridgewell/set-array@^1.2.1
260 silly fetch manifest @jridgewell/sourcemap-codec@^1.4.10
261 silly fetch manifest @jridgewell/resolve-uri@^3.1.0
262 silly fetch manifest @jridgewell/sourcemap-codec@^1.4.14
263 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2fset-array 9ms (cache hit)
264 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2fsourcemap-codec 8ms (cache hit)
265 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2fresolve-uri 9ms (cache hit)
266 http fetch GET 200 https://registry.npmjs.org/@jridgewell%2fsourcemap-codec 11ms (cache hit)
267 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
268 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^1.0.0
269 silly fetch manifest chalk@^2.4.2
270 silly fetch manifest js-tokens@^4.0.0
271 http fetch GET 200 https://registry.npmjs.org/js-tokens 3ms (cache hit)
272 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^2.5.1
273 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.25.2
274 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.8
275 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^4.23.1
276 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^5.1.1
277 silly fetch manifest caniuse-lite@^1.0.30001646
278 silly fetch manifest electron-to-chromium@^1.5.4
279 silly fetch manifest node-releases@^2.0.18
280 silly fetch manifest update-browserslist-db@^1.1.0
281 silly fetch manifest yallist@^3.0.2
282 http fetch GET 200 https://registry.npmjs.org/node-releases 9ms (cache hit)
283 http fetch GET 200 https://registry.npmjs.org/update-browserslist-db 11ms (cache hit)
284 http fetch GET 200 https://registry.npmjs.org/yallist 10ms (cache hit)
285 http fetch GET 200 https://registry.npmjs.org/caniuse-lite 15ms (cache hit)
286 http fetch GET 200 https://registry.npmjs.org/electron-to-chromium 28ms (cache hit)
287 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
288 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
289 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
290 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^2.4.2
291 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^4.0.0
292 silly fetch manifest ansi-styles@^3.2.1
293 silly fetch manifest supports-color@^5.3.0
294 silly fetch manifest escape-string-regexp@^1.0.5
295 http fetch GET 200 https://registry.npmjs.org/ansi-styles 10ms (cache hit)
296 http fetch GET 200 https://registry.npmjs.org/supports-color 6ms (cache hit)
297 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.7
298 silly placeDep node_modules/@babel/traverse [email protected] OK for: @babel/[email protected] want: ^11.1.0
299 silly placeDep ROOT @babel/[email protected] OK for: @babel/[email protected] want: ^7.24.8
300 silly placeDep ROOT [email protected] OK for: @babel/[email protected] want: ^2.0.0
301 silly placeDep ROOT @jridgewell/[email protected] OK for: @jridgewell/[email protected] want: ^1.2.1
302 silly placeDep ROOT @jridgewell/[email protected] OK for: @jridgewell/[email protected] want: ^1.4.10
303 silly placeDep ROOT @jridgewell/[email protected] OK for: @jridgewell/[email protected] want: ^3.1.0
304 silly fetch manifest browserslist@>= 4.21.0
305 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.30001646
306 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.5.4
307 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.18
308 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.1.0
309 silly fetch manifest escalade@^3.1.2
310 http fetch GET 200 https://registry.npmjs.org/escalade 3ms (cache hit)
311 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.2.1
312 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.5
313 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.3.0
314 silly fetch manifest color-convert@^1.9.0
315 silly fetch manifest has-flag@^3.0.0
316 http fetch GET 200 https://registry.npmjs.org/color-convert 3ms (cache hit)
317 http fetch GET 200 https://registry.npmjs.org/has-flag 4ms (cache hit)
318 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.9.0
319 silly fetch manifest [email protected]
320 http fetch GET 200 https://registry.npmjs.org/color-name 6ms (cache hit)
321 silly placeDep ROOT [email protected] OK for: [email protected] want: 1.1.3
322 silly placeDep ROOT [email protected] OK for: [email protected] want: 2.1.2
323 silly placeDep ROOT @eslint-community/[email protected] OK for: [email protected] want: ^4.2.0
324 silly placeDep ROOT @eslint-community/[email protected] OK for: [email protected] want: ^4.11.0
325 silly placeDep ROOT @eslint/[email protected] OK for: [email protected] want: ^0.17.1
326 silly placeDep ROOT @eslint/[email protected] OK for: [email protected] want: ^3.1.0
327 silly placeDep ROOT @humanwhocodes/[email protected] OK for: [email protected] want: ^1.0.1
328 silly placeDep ROOT @humanwhocodes/[email protected] OK for: [email protected] want: ^0.3.0
329 silly placeDep ROOT @nodelib/[email protected] OK for: [email protected] want: ^1.2.8
330 silly placeDep ROOT [email protected] OK for: [email protected] want: ^6.12.4
331 silly placeDep node_modules/eslint [email protected] OK for: [email protected] want: ^4.0.0
332 silly placeDep ROOT [email protected] OK for: [email protected] want: ^7.0.2
333 silly placeDep node_modules/eslint [email protected] OK for: [email protected] want: ^4.0.0
334 silly placeDep ROOT [email protected] OK for: [email protected] want: ^8.0.2
335 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.0.0
336 silly placeDep ROOT [email protected] OK for: [email protected] want: ^10.1.0
337 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.5.0
338 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.2
339 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.1.3
340 silly placeDep ROOT [email protected] OK for: [email protected] want: ^8.0.0
341 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.0.0
342 silly placeDep ROOT [email protected] OK for: [email protected] want: ^6.0.2
343 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.2.0
344 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.1.4
345 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.0.0
346 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.3
347 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.1
348 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.4.1
349 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.6.2
350 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.1.2
351 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.4.0
352 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.9.3
353 silly placeDep ROOT [email protected] OK for: [email protected] want: ^6.0.1
354 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.2.0
355 silly fetch manifest eslint-visitor-keys@^3.3.0
356 silly fetch manifest @eslint/object-schema@^2.1.4
357 silly fetch manifest espree@^10.0.1
358 silly fetch manifest globals@^14.0.0
359 silly fetch manifest import-fresh@^3.2.1
360 silly fetch manifest js-yaml@^4.1.0
361 silly fetch manifest strip-json-comments@^3.1.1
362 silly fetch manifest @nodelib/[email protected]
363 silly fetch manifest fastq@^1.6.0
364 silly fetch manifest uri-js@^4.2.2
365 silly fetch manifest fast-deep-equal@^3.1.1
366 silly fetch manifest json-schema-traverse@^0.4.1
367 silly fetch manifest fast-json-stable-stringify@^2.0.0
368 silly fetch manifest ansi-styles@^4.1.0
369 silly fetch manifest supports-color@^7.1.0
370 silly fetch manifest path-key@^3.1.0
371 silly fetch manifest shebang-command@^2.0.0
372 http fetch GET 200 https://registry.npmjs.org/import-fresh 24ms (cache hit)
373 silly fetch manifest which@^2.0.1
374 http fetch GET 200 https://registry.npmjs.org/@nodelib%2ffs.scandir 23ms (cache hit)
375 silly fetch manifest esrecurse@^4.3.0
376 http fetch GET 200 https://registry.npmjs.org/@eslint%2fobject-schema 28ms (cache hit)
377 silly fetch manifest estraverse@^5.2.0
378 http fetch GET 200 https://registry.npmjs.org/path-key 21ms (cache hit)
379 silly fetch manifest acorn@^8.12.0
380 http fetch GET 200 https://registry.npmjs.org/uri-js 26ms (cache hit)
381 silly fetch manifest acorn-jsx@^5.3.2
382 http fetch GET 200 https://registry.npmjs.org/shebang-command 23ms (cache hit)
383 silly fetch manifest estraverse@^5.1.0
384 http fetch GET 200 https://registry.npmjs.org/js-yaml 31ms (cache hit)
385 silly fetch manifest flat-cache@^4.0.0
386 http fetch GET 200 https://registry.npmjs.org/strip-json-comments 33ms (cache hit)
387 silly fetch manifest locate-path@^6.0.0
388 http fetch GET 200 https://registry.npmjs.org/json-schema-traverse 31ms (cache hit)
389 silly fetch manifest path-exists@^4.0.0
390 http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 32ms (cache hit)
391 silly fetch manifest is-glob@^4.0.3
392 silly fetch manifest is-extglob@^2.1.1
393 http fetch GET 200 https://registry.npmjs.org/fastq 35ms (cache hit)
394 silly fetch manifest prelude-ls@^1.2.1
395 http fetch GET 200 https://registry.npmjs.org/which 29ms (cache hit)
396 silly fetch manifest type-check@~0.4.0
397 http fetch GET 200 https://registry.npmjs.org/esrecurse 30ms (cache hit)
398 silly fetch manifest brace-expansion@^1.1.7
399 http fetch GET 200 https://registry.npmjs.org/estraverse 29ms (cache hit)
400 http fetch GET 200 https://registry.npmjs.org/acorn-jsx 28ms (cache hit)
401 silly fetch manifest deep-is@^0.1.3
402 http fetch GET 200 https://registry.npmjs.org/flat-cache 26ms (cache hit)
403 silly fetch manifest word-wrap@^1.2.5
404 http fetch GET 200 https://registry.npmjs.org/locate-path 27ms (cache hit)
405 silly fetch manifest type-check@^0.4.0
406 http fetch GET 200 https://registry.npmjs.org/acorn 34ms (cache hit)
407 silly fetch manifest fast-levenshtein@^2.0.6
408 http fetch GET 200 https://registry.npmjs.org/path-exists 32ms (cache hit)
409 silly fetch manifest ansi-regex@^5.0.1
410 http fetch GET 200 https://registry.npmjs.org/is-extglob 32ms (cache hit)
411 http fetch GET 200 https://registry.npmjs.org/estraverse 41ms (cache hit)
412 http fetch GET 200 https://registry.npmjs.org/prelude-ls 34ms (cache hit)
413 http fetch GET 200 https://registry.npmjs.org/type-check 26ms (cache hit)
414 http fetch GET 200 https://registry.npmjs.org/brace-expansion 26ms (cache hit)
415 http fetch GET 200 https://registry.npmjs.org/type-check 22ms (cache hit)
416 http fetch GET 200 https://registry.npmjs.org/ansi-regex 15ms (cache hit)
417 http fetch GET 200 https://registry.npmjs.org/word-wrap 24ms (cache hit)
418 http fetch GET 200 https://registry.npmjs.org/deep-is 27ms (cache hit)
419 http fetch GET 200 https://registry.npmjs.org/fast-levenshtein 19ms (cache hit)
420 silly placeDep node_modules/@eslint-community/eslint-utils [email protected] OK for: @eslint-community/[email protected] want: ^3.3.0
421 silly placeDep ROOT @eslint/[email protected] OK for: @eslint/[email protected] want: ^2.1.4
422 silly placeDep node_modules/@eslint/eslintrc [email protected] OK for: @eslint/[email protected] want: ^14.0.0
423 silly placeDep ROOT [email protected] OK for: @eslint/[email protected] want: ^3.2.1
424 silly placeDep ROOT [email protected] OK for: @eslint/[email protected] want: ^4.1.0
425 silly placeDep ROOT [email protected] OK for: @eslint/[email protected] want: ^3.1.1
426 silly fetch manifest parent-module@^1.0.0
427 silly fetch manifest resolve-from@^4.0.0
428 silly fetch manifest argparse@^2.0.1
429 http fetch GET 200 https://registry.npmjs.org/parent-module 5ms (cache hit)
430 http fetch GET 200 https://registry.npmjs.org/resolve-from 8ms (cache hit)
431 http fetch GET 200 https://registry.npmjs.org/argparse 8ms (cache hit)
432 silly placeDep ROOT @nodelib/[email protected] OK for: @nodelib/[email protected] want: 2.1.5
433 silly placeDep ROOT [email protected] OK for: @nodelib/[email protected] want: ^1.6.0
434 silly fetch manifest @nodelib/[email protected]
435 silly fetch manifest run-parallel@^1.1.9
436 silly fetch manifest reusify@^1.0.4
437 http fetch GET 200 https://registry.npmjs.org/@nodelib%2ffs.stat 6ms (cache hit)
438 http fetch GET 200 https://registry.npmjs.org/run-parallel 6ms (cache hit)
439 http fetch GET 200 https://registry.npmjs.org/reusify 6ms (cache hit)
440 silly placeDep ROOT @nodelib/[email protected] OK for: @nodelib/[email protected] want: 2.0.5
441 silly placeDep ROOT [email protected] OK for: @nodelib/[email protected] want: ^1.1.9
442 silly fetch manifest queue-microtask@^1.2.2
443 http fetch GET 200 https://registry.npmjs.org/queue-microtask 3ms (cache hit)
444 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.0
445 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.4.1
446 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.2.2
447 silly fetch manifest punycode@^2.1.0
448 http fetch GET 200 https://registry.npmjs.org/punycode 2ms (cache hit)
449 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.1.0
450 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.0
451 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.1
452 silly fetch manifest shebang-regex@^3.0.0
453 silly fetch manifest isexe@^2.0.0
454 http fetch GET 200 https://registry.npmjs.org/shebang-regex 3ms (cache hit)
455 http fetch GET 200 https://registry.npmjs.org/isexe 4ms (cache hit)
456 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.3.0
457 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.2.0
458 silly placeDep ROOT [email protected] OK for: [email protected] want: ^8.12.0
459 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.3.2
460 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.4
461 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.0.0
462 silly fetch manifest flatted@^3.2.9
463 silly fetch manifest keyv@^4.5.4
464 http fetch GET 200 https://registry.npmjs.org/keyv 6ms (cache hit)
465 http fetch GET 200 https://registry.npmjs.org/flatted 8ms (cache hit)
466 silly placeDep ROOT [email protected] OK for: [email protected] want: ^6.0.0
467 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.0.0
468 silly fetch manifest p-locate@^5.0.0
469 http fetch GET 200 https://registry.npmjs.org/p-locate 3ms (cache hit)
470 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.2.9
471 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.5.4
472 silly fetch manifest [email protected]
473 http fetch GET 200 https://registry.npmjs.org/json-buffer 3ms (cache hit)
474 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.0
475 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.0.0
476 silly fetch manifest callsites@^3.0.0
477 http fetch GET 200 https://registry.npmjs.org/callsites 3ms (cache hit)
478 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.1.1
479 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.1
480 silly placeDep ROOT [email protected] OK for: [email protected] want: 3.0.1
481 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.2.1
482 silly placeDep ROOT [email protected] OK for: [email protected] want: ~0.4.0
483 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.0.0
484 silly fetch manifest p-limit@^3.0.2
485 http fetch GET 200 https://registry.npmjs.org/p-limit 3ms (cache hit)
486 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.2
487 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.1.7
488 silly fetch manifest balanced-match@^1.0.0
489 silly fetch manifest [email protected]
490 http fetch GET 200 https://registry.npmjs.org/balanced-match 4ms (cache hit)
491 http fetch GET 200 https://registry.npmjs.org/concat-map 3ms (cache hit)
492 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.0.0
493 silly placeDep ROOT [email protected] OK for: [email protected] want: 0.0.1
494 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.1.3
495 silly placeDep ROOT [email protected] OK for: [email protected] want: ^2.0.6
496 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.2.5
497 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.2
498 silly fetch manifest yocto-queue@^0.1.0
499 http fetch GET 200 https://registry.npmjs.org/yocto-queue 5ms (cache hit)
500 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.1.0
501 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.0
502 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.1.0
503 silly placeDep ROOT [email protected] OK for: [email protected] want: ^0.23.2
504 silly placeDep ROOT [email protected] OK for: [email protected] want: ^1.2.2
505 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.0
506 silly placeDep ROOT [email protected] OK for: [email protected] want: ^5.0.1
507 silly placeDep ROOT [email protected] OK for: [email protected] want: ^3.0.0
508 verbose stack Error: Unable to resolve reference $eslint
508 verbose stack     at get spec [as spec] (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/edge.js:202:15)
508 verbose stack     at #nodeFromEdge (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1054:46)
508 verbose stack     at #loadPeerSet (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1320:35)
508 verbose stack     at #nodeFromEdge (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1097:29)
508 verbose stack     at async #buildDepStep (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:923:11)
508 verbose stack     at async Arborist.buildIdealTree (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:203:7)
508 verbose stack     at async Promise.all (index 1)
508 verbose stack     at async Arborist.reify (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
508 verbose stack     at async Install.exec (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/lib/commands/install.js:150:5)
508 verbose stack     at async module.exports (/home/jsjoeio/.nvm/versions/node/v20.15.0/lib/node_modules/npm/lib/cli/entry.js:74:5)
509 verbose cwd /home/jsjoeio/dev/scrtch-ppr
510 verbose Linux 5.10.16.3-microsoft-standard-WSL2
511 verbose node v20.15.0
512 verbose npm  v10.7.0
513 error Unable to resolve reference $eslint
514 verbose exit 1
515 verbose code 1
516 silly unfinished npm timer reify 1723045426214
517 silly unfinished npm timer reify:loadTrees 1723045426216
518 silly unfinished npm timer idealTree:buildDeps 1723045426413
519 silly unfinished npm timer idealTree:node_modules/typescript-eslint 1723045428162
520 error A complete log of this run can be found in: /home/jsjoeio/.npm/_logs/2024-08-07T15_43_46_028Z-debug-0.log

Validations

@EricCote
Copy link

EricCote commented Aug 7, 2024

I've got the exact same bug using --template react-swc-ts

@okayda
Copy link

okayda commented Aug 7, 2024

same but when i remove this "overrides": { "eslint": "$eslint" } inside of my package,json it works to but the only problem is when i try to use tailwindCSS is not working

@Cadhig
Copy link

Cadhig commented Aug 7, 2024

having this exact issue, creating a new vite project like i have numerous times using typescript and react, but i cant install package.json with the same eslint error.

@bluwy
Copy link
Member

bluwy commented Aug 7, 2024

Yeah, it actually seems like we don't need that overrides anymore since we've upgrade typescript-eslint to v8. I'll send a PR to remove this and cut another release. The problem in general seems related to npm/cli#5730, strangely I'm pretty sure it didn't error in the past for me.

@bluwy bluwy added p4-important Violate documented behavior or significantly improves performance (priority) regression The issue only appears after a new release and removed pending triage labels Aug 7, 2024
@EricCote
Copy link

EricCote commented Aug 7, 2024

Replacing with $eslint with the version number works for me:

"overrides": { "eslint": "^9.8.0" }

@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p4-important Violate documented behavior or significantly improves performance (priority) regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants