Docker build failing on Mac M1 (Failed at the node-sass@4.14.1 postinstall script)

Viewed 33
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-08T06_44_01_888Z-debug.log
The command '/bin/sh -c npm i && mkdir /app && cp -R ./node_modules ./app' returned a non-zero code: 1

This is the code snippet of docker build (./build.sh) command. Can someone help me with this?

0 Answers
Related