Getting npm ERR! code TAR_BAD_ARCHIVE and npm ERR! TAR_BAD_ARCHIVE: Unrecognized archive format #147302
Unanswered
Dilipkumarkanta
asked this question in
npm
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the below error when i am doing npm install
npm ERR! code TAR_BAD_ARCHIVE
npm ERR! TAR_BAD_ARCHIVE: Unrecognized archive format
Here is the docker file for your referance.
FROM node:18.19.1
#Working directory
WORKDIR /app
Install the timezone package and copy the specific Time Zone file to etc.
#RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
Copy the cloned repo to the working directory.
COPY ./ .
#Install Node Modules
RUN npm cache clean --force
RUN npm install --force
#Createing the build folder
RUN npm run build
#Application port
EXPOSE 3000
Set BROWSER environment variable to none
#ENV BROWSER=none
CMD ["npm", "run", "start"]
Beta Was this translation helpful? Give feedback.
All reactions