rev-hash | Create a hash for file revving | Hashing library
kandi X-RAY | rev-hash Summary
kandi X-RAY | rev-hash Summary
Create a hash for file revving
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rev-hash
rev-hash Key Features
rev-hash Examples and Code Snippets
Community Discussions
Trending Discussions on rev-hash
QUESTION
I am able to build the docker image but can't get the container to run. Here is the package.json:
...ANSWER
Answered 2021-Jun-10 at 00:34Form npm install
docs,
With the
--production
flag (or when theNODE_ENV
environment variable is set toproduction
), npm will not install modules listed indevDependencies
Since you have ENV NODE_ENV=production
in your base
image, neither rimraf
nor parcel-bundler
is installed inside your container.
Your npm start
command is running npm run clean && npm run serve
. npm run clean
uses rimraf
module and npm run serve
uses parcel-bundler
module. This is the reason why you're seeing both the errors.
You can try one of the following solutions,
Remove
ENV NODE_ENV=production
from your Dockerfile (This is the quickest solution but should not be used in production)You can install
rimraf
andparcel-bundler
globally inside the container using:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rev-hash
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page