-
Notifications
You must be signed in to change notification settings - Fork 258
Description
Describe the bug
Description
Steps to Reproduce:
Go to stackblitz.com.
Create any new project from a template (e.g., Vite + React).
The project initialization starts, and the terminal opens.
The automatic npm install process fails immediately.
Expected Behavior:
The dependencies for the new project should install successfully without any errors.
Actual Behavior:
The installation fails with the error message: npm error Failed to pre-resolve dependencies. This seems to be a platform-wide issue as it happens even on unmodified template projects. The error is thrown by a StackBlitz worker script, not standard npm.
Additional Information:
Failing Project URL:
(Note: This issue occurs on any newly created project. You can reproduce it with any template. Here is a link to an empty, failing Vite project for reference, but any new project will show the same behavior.)
https://stackblitz.com/edit/vitejs-vite-z3t3la
npm-debug.log:
Kod snippet'i
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
4 silly config load:file:/home/krs1zzet/finance-ui/01-starting-project/.npmrc
5 silly config load:file:/home/.npmrc
6 silly config load:file:/usr/local/etc/npmrc
7 verbose title npm install
8 verbose argv "install"
9 verbose logfile logs-max:10 dir:/home/.npm/_logs/2025-07-24T05_09_14_898Z-
10 verbose logfile /home/.npm/_logs/2025-07-24T05_09_14_898Z-debug-0.log
11 silly packumentCache heap:9007199254740991 maxSize:2251799813685247 maxEntrySize:1125899906842623
12 silly logfile done cleaning log files
13 verbose stack Error: Failed to pre-resolve dependencies
13 verbose stack at _0x91f87b (https://w-credentialless-staticblitz.com/fetch.worker.96435430.js:1:248502)
13 verbose stack at async _0x42e725 (https://w-credentialless-staticblitz.com/fetch.worker.96435430.js:1:246267)
14 error Failed to pre-resolve dependencies
15 silly unfinished npm timer reify 1753333755075
16 silly unfinished npm timer reify:loadTrees 1753333755077
17 verbose cwd /home/krs1zzet/finance-ui/01-starting-project
18 verbose os Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
19 verbose node v20.19.1
20 verbose npm v10.8.2
21 verbose exit 1
22 verbose code 1
23 error A complete log of this run can be found in: /home/.npm/_logs/2025-07-24T05_09_14_898Z-debug-0.log
Environment:
OS: Windows (via Browser)
Browser: Chrome
Timestamp: 2025-07-24 ~08:12 AM (Türkiye Time, GMT+3)
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/krs1zzet/finance-ui?file=01-starting-project/package.json
Steps to reproduce
Go to stackblitz.com.
Create any new project from a template (e.g., Vite + React).
The project initialization starts, and the terminal opens.
The automatic npm install process fails immediately.
Expected behavior
The dependencies for the new project should install successfully without any errors.
Parity with Local
- I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Version = 1.84.0
Hash = 3b0b7194bc6b567c2eaf4c96a5759098469dcf59
WebContainer = 96435430
Browser name = Chrome
Full version = 138.0.0.0
Major version = 138
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 121453720,
"usedJSHeapSize": 85948460,
"jsHeapSizeLimit": 4294705152
}
Additional context
No response