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

Can't deploy to Vercel #33

Open
QuakeQuasar opened this issue May 31, 2024 · 0 comments
Open

Can't deploy to Vercel #33

QuakeQuasar opened this issue May 31, 2024 · 0 comments

Comments

@QuakeQuasar
Copy link

00:45:41.305 | Running "vercel build"
00:45:42.224 | Vercel CLI 34.2.4
00:45:43.428 | Installing dependencies...
00:46:05.855 |  
00:46:05.855 | added 544 packages in 22s
00:46:05.856 |  
00:46:05.856 | 171 packages are looking for funding
00:46:05.856 | run npm fund for details
00:46:05.892 | Detected package-lock.json generated by npm 7+
00:46:05.892 | Running "npm run build"
00:46:06.184 |  
00:46:06.184 | > [email protected] build
00:46:06.184 | > tsc && vite build
00:46:06.184 |  
00:46:09.892 | /vercel/path0/node_modules/rollup/dist/native.js:59
00:46:09.892 | throw new Error(
00:46:09.892 | ^
00:46:09.892 |  
00:46:09.893 | Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
00:46:09.893 | at requireWithFriendlyError (/vercel/path0/node_modules/rollup/dist/native.js:59:9)
00:46:09.893 | at Object. (/vercel/path0/node_modules/rollup/dist/native.js:68:76)
00:46:09.893 | ... 3 lines matching cause stack trace ...
00:46:09.893 | at Module._load (node:internal/modules/cjs/loader:1022:12)
00:46:09.893 | at cjsLoader (node:internal/modules/esm/translators:366:17)
00:46:09.893 | at ModuleWrap. (node:internal/modules/esm/translators:315:7)
00:46:09.893 | at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
00:46:09.893 | at async ModuleLoader.import (node:internal/modules/esm/loader:323:24) {
00:46:09.893 | [cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
00:46:09.893 | Require stack:
00:46:09.893 | - /vercel/path0/node_modules/rollup/dist/native.js
00:46:09.893 | at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
00:46:09.893 | at Module._load (node:internal/modules/cjs/loader:984:27)
00:46:09.894 | at Module.require (node:internal/modules/cjs/loader:1231:19)
00:46:09.894 | at require (node:internal/modules/helpers:179:18)
00:46:09.894 | at requireWithFriendlyError (/vercel/path0/node_modules/rollup/dist/native.js:41:10)
00:46:09.894 | at Object. (/vercel/path0/node_modules/rollup/dist/native.js:68:76)
00:46:09.894 | at Module._compile (node:internal/modules/cjs/loader:1369:14)
00:46:09.894 | at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
00:46:09.894 | at Module.load (node:internal/modules/cjs/loader:1206:32)
00:46:09.894 | at Module._load (node:internal/modules/cjs/loader:1022:12) {
00:46:09.894 | code: 'MODULE_NOT_FOUND',
00:46:09.894 | requireStack: [ '/vercel/path0/node_modules/rollup/dist/native.js' ]
00:46:09.894 | }
00:46:09.894 | }
00:46:09.894 |  
00:46:09.895 | Node.js v20.12.2
00:46:09.904 | Error: Command "npm run build" exited with 1
00:46:10.339

Any idea of what commands should I use for Build Command or Install Command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant