thank you for uploading this
hello sir i am new to docker and i am using linux. I want to run vue cli application in docker. Now i am getting a an error when i run npm install in my Dockerfile. It says permission denied. Here is my Dockerfile FROM node:lts-alpine ENV NPM_CONFIG_PREFIX=/home/node/.npm-global WORKDIR /home/node/app COPY package.json /home/node/app USER node RUN npm install CMD ["npm", "run", "start"] Here is the error that is showing after running docker build -t test-app . Error: EACCES: permission denied, open '/usr/local/lib/node_modules/npm/bin/npm-cli.js' at Object.openSync (fs.js:458:3) at Object.readFileSync (fs.js:360:35) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1152:22) at Module.load (internal/modules/cjs/loader.js:977:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { errno: -13, syscall: 'open', code: 'EACCES', path: '/usr/local/lib/node_modules/npm/bin/npm-cli.js' } The command '/bin/sh -c npm install' returned a non-zero code: 1 Note that i don't have any node_moduels folder in /usr/local/lib/ directory. Now my question is that do i have to install node and and npm using apt-get install ? Please tell me how i can i fix this problem. Thanks
@hew86i