cli
cli copied to clipboard
Nuxt3 and netlify.toml: nuxi build is not found
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
- Create
netlify.tomlfile - Edit file with your command
[build]
command = "npm run dev"
publish = "dist/"
[context.staging.environment]
NODE_ENV = "production"
STRAPI_URL = "..."
- Push so netlify starts building
- 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