Getting started build fails

I am trying to follow the instructions on the Getting Started walkthrough on Raspberry Pi 3, but when I attempt to deploy the code, I get this error and then the build proceeds to fail:
[Error] Build failed: The command ‘/bin/sh -c JOBS=MAX npm install --production --unsafe-perm && npm cache clean && rm -rf /tmp/*’ returned a non-zero code: 1
After Step 4 began, there were a lot of red messages, all related to npm.

Try changing the line in question to:

RUN JOBS=MAX npm install --production --unsafe-perm && npm cache verify && rm -rf /tmp/*

The word “clean” has changed to “verify.”


thank you! I have successfully built it now.

1 Like