cli icon indicating copy to clipboard operation
cli copied to clipboard

Nuxt3 and netlify.toml: nuxi build is not found

Open davidfrgla opened this issue 3 years ago • 0 comments

Describe the bug

In a Nuxt3 project, when editing the netlify.toml config file, the build throws an error: sh: 1: nuxi: not found But it builds when no netlify.toml in the project.

I think it is about the Bash Shell launched by this config file.

Steps to reproduce

  1. Create netlify.tomlfile
  2. Edit file with your command
[build]
  command = "npm run dev"
  publish = "dist/"

[context.staging.environment]
  NODE_ENV = "production"
  STRAPI_URL = "..."
  1. Push so netlify starts building
  2. Error

Configuration

No response

Environment

System: OS: macOS 10.15.7 CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Memory: 2.29 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm Watchman: 2022.01.03.00 - /usr/local/bin/watchman npmGlobalPackages: netlify-cli: 9.16.3

davidfrgla avatar Apr 06 '22 15:04 davidfrgla