Getting started build fails

raspberrypi3

#1

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.


Npm notice created a lockfile as package-lock.json. You should commit this file
Npm notice created a lockfile as package-lock.json. You should commit this file
#3

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.”


#4

thank you! I have successfully built it now.