My app-project is in a sub-folder in my repo so I have a package.json-file in the root with the following scripts:
“preinstall”: “cd [dir]/app && sudo npm install --unsafe-perm”,
“build”: “cd [dir]/app && npm run build”
What’s in preinstall I earlier had in “install”, but I got the same result. The issue is the following:
[00:21:05]: Installing Dependencies
[00:21:05]: $ npm install --quiet --no-optional
[00:21:06]: ▸ npm WARN lifecycle firstname.lastname@example.org~preinstall: cannot run in wd email@example.com cd [dir]/app && sudo npm install --unsafe-perm (wd=/builds/solojuve1897/musse)
[dir] = only masking the real path.
I would like to point out that the scripts works fine on my local machine.