code-challenge icon indicating copy to clipboard operation
code-challenge copied to clipboard

npm issue when running 'compose build'

Open JLeeVance opened this issue 1 year ago • 0 comments

I am eager to apply for the Developer position with DataMade! I ran into an issue with the commands to compose the build.

File Dockerfile

Issue/Error Encountered $ RUN npm install Error Code: 'npm not found'

Possible Solution After some research, I attempted to hardwire the npm install from the top of the Dockerfile. Adding the update into the top of the script was successful in composing the build, thus allowing me to begin the CC. Below is the implemented code!

code RUN apt-get update && \ apt-get install -y curl && \ curl -L https://deb.nodesource.com/setup_14.x | bash - && \ apt-get install -y nodejs && \ apt-get install -y npm

I am eager to get started on the CC and hope to speak with your team in the future. Keep up the work y'all are doing, because it is inspiring!

  • Jay Vance

JLeeVance avatar Jul 16 '24 15:07 JLeeVance