question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Command "vercel build" exited with 1

See original GitHub issue

I 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:closed
  • Created a year ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

3reactions
nicolaselielllcommented, Apr 29, 2022

Same error here

2reactions
nford88commented, Apr 28, 2022

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

[22:26:03.807] Retrieving list of deployment files...
[22:26:05.738] Downloading 58 deployment files...
[22:26:07.911] Installing build runtime...
[22:26:16.150] Build runtime installed: 8.240s
[22:26:16.841] Looking up build cache...
[22:26:17.127] Build Cache not found
[22:26:17.502] Running "vercel build"
[22:26:17.959] Vercel CLI 24.1.1-canary.6 build (beta) β€” https://vercel.com/feedback
[22:26:18.058] β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
[22:26:18.059] β”‚ 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 β”‚
[22:26:18.059] β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
[22:26:18.307] yarn add v1.22.17
[22:26:18.318] warning package.json: No license field
[22:26:18.330] info No lockfile found.
[22:26:18.349] warning No license field
[22:26:18.350] [1/4] Resolving packages...
[22:26:19.784] [2/4] Fetching packages...
[22:26:20.801] [3/4] Linking dependencies...
[22:26:21.118] [4/4] Building fresh packages...
[22:26:21.125] success Saved lockfile.
[22:26:21.126] warning No license field
[22:26:21.131] success Saved 63 new dependencies.
[22:26:21.131] info Direct dependencies
[22:26:21.131] β”œβ”€ @nuxtjs/vercel-builder@0.22.1
[22:26:21.131] └─ @vercel/build-utils@2.15.1
[22:26:21.132] info All dependencies
[22:26:21.132] β”œβ”€ @nuxtjs/vercel-builder@0.22.1
[22:26:21.132] β”œβ”€ @nuxtjs/web-vitals@0.1.8
[22:26:21.132] β”œβ”€ @vercel/build-utils@2.15.1
[22:26:21.132] β”œβ”€ @vercel/node-bridge@2.1.0
[22:26:21.132] β”œβ”€ ansi-regex@5.0.1
[22:26:21.132] β”œβ”€ ansi-styles@4.3.0
[22:26:21.132] β”œβ”€ at-least-node@1.0.0
[22:26:21.132] β”œβ”€ balanced-match@1.0.2
[22:26:21.132] β”œβ”€ brace-expansion@1.1.11
[22:26:21.132] β”œβ”€ chalk@4.1.2
[22:26:21.132] β”œβ”€ cliui@7.0.4
[22:26:21.132] β”œβ”€ color-convert@2.0.1
[22:26:21.132] β”œβ”€ color-name@1.1.4
[22:26:21.132] β”œβ”€ concat-map@0.0.1
[22:26:21.132] β”œβ”€ consola@2.15.3
[22:26:21.133] β”œβ”€ cross-spawn@7.0.3
[22:26:21.133] β”œβ”€ defu@5.0.1
[22:26:21.133] β”œβ”€ destr@1.1.1
[22:26:21.133] β”œβ”€ emoji-regex@8.0.0
[22:26:21.133] β”œβ”€ escalade@3.1.1
[22:26:21.133] β”œβ”€ execa@5.1.1
[22:26:21.133] β”œβ”€ flat@5.0.2
[22:26:21.133] β”œβ”€ fs-extra@9.1.0
[22:26:21.133] β”œβ”€ fs.realpath@1.0.0
[22:26:21.133] β”œβ”€ get-caller-file@2.0.5
[22:26:21.133] β”œβ”€ get-stream@6.0.1
[22:26:21.133] β”œβ”€ glob@7.2.0
[22:26:21.133] β”œβ”€ graceful-fs@4.2.10
[22:26:21.133] β”œβ”€ has-flag@4.0.0
[22:26:21.133] β”œβ”€ human-signals@2.1.0
[22:26:21.133] β”œβ”€ inflight@1.0.6
[22:26:21.133] β”œβ”€ inherits@2.0.4
[22:26:21.133] β”œβ”€ is-fullwidth-code-point@3.0.0
[22:26:21.133] β”œβ”€ is-stream@2.0.1
[22:26:21.134] β”œβ”€ isexe@2.0.0
[22:26:21.134] β”œβ”€ jiti@1.13.0
[22:26:21.134] β”œβ”€ jsonfile@6.1.0
[22:26:21.134] β”œβ”€ lru-cache@6.0.0
[22:26:21.134] β”œβ”€ merge-stream@2.0.0
[22:26:21.134] β”œβ”€ mimic-fn@2.1.0
[22:26:21.134] β”œβ”€ minimatch@3.1.2
[22:26:21.134] β”œβ”€ npm-run-path@4.0.1
[22:26:21.134] β”œβ”€ onetime@5.1.2
[22:26:21.134] β”œβ”€ path-is-absolute@1.0.1
[22:26:21.134] β”œβ”€ path-key@3.1.1
[22:26:21.134] β”œβ”€ rc9@1.2.2
[22:26:21.134] β”œβ”€ replace-in-file@6.3.2
[22:26:21.134] β”œβ”€ require-directory@2.1.1
[22:26:21.134] β”œβ”€ resolve-from@5.0.0
[22:26:21.134] β”œβ”€ semver@7.3.5
[22:26:21.134] β”œβ”€ shebang-command@2.0.0
[22:26:21.134] β”œβ”€ shebang-regex@3.0.0
[22:26:21.134] β”œβ”€ signal-exit@3.0.7
[22:26:21.134] β”œβ”€ string-width@4.2.3
[22:26:21.134] β”œβ”€ strip-final-newline@2.0.0
[22:26:21.134] β”œβ”€ supports-color@7.2.0
[22:26:21.135] β”œβ”€ web-vitals@2.1.4
[22:26:21.135] β”œβ”€ which@2.0.2
[22:26:21.135] β”œβ”€ wrap-ansi@7.0.0
[22:26:21.135] β”œβ”€ y18n@5.0.8
[22:26:21.135] β”œβ”€ yallist@4.0.0
[22:26:21.135] β”œβ”€ yargs-parser@21.0.1
[22:26:21.135] └─ yargs@17.4.1
[22:26:21.137] Done in 2.83s.
[22:26:21.197] Error! Package subpath './package.json' is not defined by "exports" in /vercel/path1/.vercel/builders/node_modules/@nuxtjs/vercel-builder/package.json
[22:26:21.209] Error: Command "vercel build" exited with 1

vercel.json

{
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder",
      "config": {}
    }
  ]
}

Vercel CLI 24.0.0 (downgraded from 24.1.1 canary to see if it was making a difference)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found