profile
viewpoint

Ask questionsprocess.dlopen(module, path.toNamespacedPath(filename))

hi, version: os->10.13.3 node->v8.4.0 vscode->1.25.1;"bcrypt": "^3.0.0". if i debug in vscode: image; if I start the service with node, it works fine. I tried to change the node version and the bcrypt version,it no works.

kelektiv/node.bcrypt.js

Answer questions irsol

Got it working after spending hours.

  1. Stop the images by docker-compose down
  2. Build the images by docker-compose build
  3. Start the images by docker-compose up

For reference my dockerfile is as follows,

FROM node:10.16.0
RUN npm install -g --unsafe-perm prisma2@2.0.0-preview-12

RUN mkdir /app
WORKDIR /app

COPY package*.json /app
COPY prisma /app/prisma/
COPY src /app/src

ARG MYSQL_URL
ENV MYSQL_URL "$MYSQL_URL"

RUN npm install
RUN npm audit fix --force

RUN prisma2 generate

CMD ["npm", "start" ]

@bamne123 try to add node_modules to your .gitignore file

useful!
source:https://uonfu.com/
answerer
Iryna Soltyska irsol Berlin Python3 | Node.js | Typescript
Github User Rank List