When I did the lab exercise of Chapter 4 I put the USER student before the RUN npm install --omit=dev instruction. The building resulted in the following error:
Then I put the USER student instruction after the RUN instruction and could finish my lab.
However when I looked at the solution and the demo I see that USER student should be before the RUN command, but I can't get it working.
Can you explain why it is not working for me?
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.