Category : node-modules

I have an NPM monorepo project which, where I want to execute a script under one of the packages. This is the project structure: packageA packageB packageC package.json Each package contains its own package.json. The project is built using lerna. In packageA I have the following package.json: { "name": "packageA", "version": "1.0.0", "description": "", "main": ..

Read more

This is my project structure: project/ node_modules/ src/ .gcloudignore cloudbuild.yaml Dockerfile package.json Here is how I’m building it: gcloud builds submit ./project –config=./project/cloudbuild.yaml –project=$PROJECT_ID // AND SOME SUBSTITUTIONS This is my cloudbuild.yaml file: steps: # BUILD IMAGE – name: "gcr.io/cloud-builders/docker" args: – "build" – "–tag" – "gcr.io/$PROJECT_ID/$_SERVICE_NAME:$_TAG_NAME" – "." timeout: 180s # PUSH IMAGE TO ..

Read more

My node application was giving me some trouble when I was adding some Bookshelfjs Model hooks and after some time I deduced that I could/should update the node version I updated from 14.8 to 15 in all of my Dockerfile(s) but my primary application just refuses to start, saying: cross-env NODE_ENV=development nodemon server.js /app/app-name/node_modules/.bin/../node/bin/node: 1: ..

Read more

I using node:lts-alpine docker image. I want to upgrade ini package from 1.3.5 to 2.0.0. when I use npm install [email protected] -g command, it still keeping the older version of ini package also? # npm list -g |grep ‘[email protected]’ +– [email protected] | +– [email protected] deduped +– [email protected] | +– [email protected] deduped | | `– [email protected] ..

Read more

I have a simple nodejs app. While trying to load the libraries i used npm link library1 library2 which created symlinks to /usr/local/lib/node_modules. I am trying to build the docker image of the same using following instructions in my Dockerfile RUN mkdir -p /home/app COPY ./app /home/app WORKDIR /home/app RUN npm install CMD ["node", "server.js"] ..

Read more

Thw following Dockerfile: FROM node:10-buster RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app WORKDIR /home/node/app COPY package*.json ./ USER node RUN npm install COPY –chown=node:node . . EXPOSE 8443 RUN ls && npm run knex –knexfile knexfile.js migrate:latest && npm install nodemon -g –save CMD [ "sh","-c","npm run dev"] Fails in npm install nodemon ..

Read more

I’m trying to use Tailwind CSS in my Django project running with Docker / Docker-compose. my Django container is built with python:3.9-slim, which has no npm built-in. I am thinking to use node:15.4-alpine to install tailwind css. How can I do so? Can someone give me guidance on Dockerfile and docker-compose.yml I’ve tried to start ..

Read more