I try to build a project on macOS but the build fails.
I have in my package.json:
"scripts": {
...
"build": "build",
...
when I run npm run build I get the following error:
sh: build: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! project build: `build`
npm ERR! spawn ENOENT
There is file in the same folder that that is called "build", when I go there and execute the commands manually everything works fine. What could be the cause?