Error: Command "vercel build" exited with 1
See original GitHub issueI did not make any changes to the packages. I get the following error when I try to deploy the project.
[23:24:55.334] Cloning completed: 578.923ms
[23:24:55.668] Installing build runtime...
[23:25:02.803] Build runtime installed: 7.134s
[23:25:03.541] Looking up build cache...
[23:25:04.070] Build Cache not found
[23:25:04.406] Running "vercel build"
[23:25:04.862] Vercel CLI 24.1.1-canary.6 build (beta) β https://vercel.com/feedback
[23:25:04.966] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[23:25:04.966] β WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings β
[23:25:04.966] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[23:25:05.215] yarn add v1.22.17
[23:25:05.226] warning package.json: No license field
[23:25:05.242] info No lockfile found.
[23:25:05.261] warning No license field
[23:25:05.262] [1/4] Resolving packages...
[23:25:06.307] [2/4] Fetching packages...
[23:25:06.990] [3/4] Linking dependencies...
[23:25:07.286] [4/4] Building fresh packages...
[23:25:07.292] success Saved lockfile.
[23:25:07.294] warning No license field
[23:25:07.299] success Saved 63 new dependencies.
[23:25:07.299] info Direct dependencies
[23:25:07.299] ββ @nuxtjs/vercel-builder@0.22.1
[23:25:07.299] ββ @vercel/build-utils@2.15.1
[23:25:07.299] info All dependencies
[23:25:07.299] ββ @nuxtjs/vercel-builder@0.22.1
[23:25:07.300] ββ @nuxtjs/web-vitals@0.1.8
[23:25:07.300] ββ @vercel/build-utils@2.15.1
[23:25:07.300] ββ @vercel/node-bridge@2.1.0
[23:25:07.300] ββ ansi-regex@5.0.1
[23:25:07.300] ββ ansi-styles@4.3.0
[23:25:07.300] ββ at-least-node@1.0.0
[23:25:07.300] ββ balanced-match@1.0.2
[23:25:07.300] ββ brace-expansion@1.1.11
[23:25:07.300] ββ chalk@4.1.2
[23:25:07.300] ββ cliui@7.0.4
[23:25:07.300] ββ color-convert@2.0.1
[23:25:07.300] ββ color-name@1.1.4
[23:25:07.300] ββ concat-map@0.0.1
[23:25:07.300] ββ consola@2.15.3
[23:25:07.300] ββ cross-spawn@7.0.3
[23:25:07.300] ββ defu@5.0.1
[23:25:07.301] ββ destr@1.1.1
[23:25:07.301] ββ emoji-regex@8.0.0
[23:25:07.301] ββ escalade@3.1.1
[23:25:07.301] ββ execa@5.1.1
[23:25:07.301] ββ flat@5.0.2
[23:25:07.301] ββ fs-extra@9.1.0
[23:25:07.301] ββ fs.realpath@1.0.0
[23:25:07.301] ββ get-caller-file@2.0.5
[23:25:07.301] ββ get-stream@6.0.1
[23:25:07.301] ββ glob@7.2.0
[23:25:07.301] ββ graceful-fs@4.2.10
[23:25:07.301] ββ has-flag@4.0.0
[23:25:07.301] ββ human-signals@2.1.0
[23:25:07.301] ββ inflight@1.0.6
[23:25:07.301] ββ inherits@2.0.4
[23:25:07.301] ββ is-fullwidth-code-point@3.0.0
[23:25:07.301] ββ is-stream@2.0.1
[23:25:07.302] ββ isexe@2.0.0
[23:25:07.302] ββ jiti@1.13.0
[23:25:07.302] ββ jsonfile@6.1.0
[23:25:07.302] ββ lru-cache@6.0.0
[23:25:07.302] ββ merge-stream@2.0.0
[23:25:07.302] ββ mimic-fn@2.1.0
[23:25:07.302] ββ minimatch@3.1.2
[23:25:07.302] ββ npm-run-path@4.0.1
[23:25:07.302] ββ onetime@5.1.2
[23:25:07.303] ββ path-is-absolute@1.0.1
[23:25:07.303] ββ path-key@3.1.1
[23:25:07.303] ββ rc9@1.2.2
[23:25:07.303] ββ replace-in-file@6.3.2
[23:25:07.303] ββ require-directory@2.1.1
[23:25:07.303] ββ resolve-from@5.0.0
[23:25:07.303] ββ semver@7.3.5
[23:25:07.303] ββ shebang-command@2.0.0
[23:25:07.303] ββ shebang-regex@3.0.0
[23:25:07.303] ββ signal-exit@3.0.7
[23:25:07.303] ββ string-width@4.2.3
[23:25:07.303] ββ strip-final-newline@2.0.0
[23:25:07.303] ββ supports-color@7.2.0
[23:25:07.303] ββ web-vitals@2.1.4
[23:25:07.304] ββ which@2.0.2
[23:25:07.304] ββ wrap-ansi@7.0.0
[23:25:07.304] ββ y18n@5.0.8
[23:25:07.304] ββ yallist@4.0.0
[23:25:07.304] ββ yargs-parser@21.0.1
[23:25:07.304] ββ yargs@17.4.1
[23:25:07.305] Done in 2.10s.
[23:25:07.363] Error! Package subpath './package.json' is not defined by "exports" in /vercel/path0/.vercel/builders/node_modules/@nuxtjs/vercel-builder/package.json
[23:25:07.375] Error: Command "vercel build" exited with 1
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Vercel Deployment Error: Command "npm run build" exited ...
1. You need to make sure all the warnings in your terminal are cleared/rectified before you build it because builds will fail since...
Read more >Errors β Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >Error: Command "npm run build" exited with 1 - Get Help
I downgraded node to v.16.18.1 and was able to run frontity locally. But I still can't deploy to vercel. The error is the...
Read more >Deploy Vercel Error 'Error: Command "yarn run build" exited ...
Deploy Vercel Error 'Error: Command "yarn run build" exited with 1'
Read more >Command "npm run build" exited with 1-Reactjs - appsloveworld
Go to your project setting in vercel.com. Go to General. In the "Build & Development Settings", override the Build command and write CI=''...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same error here
I can confirm similar thing is happening to myself. Previously build was working perfectly.
vercel --prod
from current working head 3 weeks ago results in the same issue. This is a nuxt project if that makes a difference.Logs
vercel.json
Vercel CLI 24.0.0 (downgraded from 24.1.1 canary to see if it was making a difference)