HI,
I am continuously getting npm error for missing scripts , though all the required scripts are present there .
I am building my docker image with alpine linux base image.
everything is working fine in docker-compose build , if doing inside my ec2 box.
thats why i think its related to circleci issue.
Help appreciated , m stuck ! urgently !
My error goes like :-
Step 16 : RUN cd /opt/{app}/app_UI/ && ls -ltrh && npm run {ENV} && echo “npm run done!!”
—> Running in c191c1332712
total 28
drwxr-xr-x 1 root root 13.6K Jun 7 13:00 node_modules
drwxr-xr-x 1 root root 34 Jun 7 13:00 typings
-rw-r–r-- 1 root root 4.0K Jun 7 13:00 webpack-staging.config.js
-rw-r–r-- 1 root root 3.4K Jun 7 13:00 webpack-production.config.js
-rw-r–r-- 1 root root 3.1K Jun 7 13:00 webpack-dev.config.js
-rw-r–r-- 1 root root 211 Jun 7 13:00 typings.json
-rw-r–r-- 1 root root 460 Jun 7 13:00 tsconfig.json
drwxr-xr-x 1 root root 82 Jun 7 13:00 src
-rwxr-xr-x 1 root root 3.0K Jun 7 13:00 package.json
npm ERR! Linux 3.13.0-119-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “run” "{ENV:-staging}" npm ERR! node v6.2.0npm ERR! npm v3.10.5 npm ERR! missing script: {ENV:-staging}
npm ERR! If you need help, you may report this error at:
npm ERR! Please include the following file with any support request:
npm ERR! /opt/app/app_UI/npm-debug.log