We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made a docker file
ROM node:18-bullseye-slim
ENV PORT=21465
RUN apt update -y RUN apt install wget git curl -y RUN apt-get install -y libxshmfence-dev libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
RUN npm install -g cross-env
WORKDIR /home/node/app COPY ./app .
#INSTALL CHROMIUM ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get install -y ./google-chrome-stable_current_amd64.deb RUN rm google-chrome-stable_current_amd64.deb
#RUN the APP RUN yarn install EXPOSE 21465
This is the Error
yarn run v1.22.19 $ cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true NODE_PATH=src nodemon --watch src --exec ts-node --esm src/server.ts -e ts wppconnect-server-1 | node:events:492 wppconnect-server-1 | throw er; // Unhandled 'error' event wppconnect-server-1 | ^ wppconnect-server-1 | wppconnect-server-1 | Error: spawn nodemon ENOENT wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:283:19) wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16) wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) wppconnect-server-1 | Emitted 'error' event on ChildProcess instance at: wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:289:12) wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16) wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { wppconnect-server-1 | errno: -2, wppconnect-server-1 | code: 'ENOENT', wppconnect-server-1 | syscall: 'spawn nodemon', wppconnect-server-1 | path: 'nodemon', wppconnect-server-1 | spawnargs: [ wppconnect-server-1 | '--watch', wppconnect-server-1 | 'src', wppconnect-server-1 | '--exec', wppconnect-server-1 | 'ts-node', wppconnect-server-1 | '--esm', wppconnect-server-1 | 'src/server.ts', wppconnect-server-1 | '-e', wppconnect-server-1 | 'ts' wppconnect-server-1 | ] wppconnect-server-1 | } wppconnect-server-1 | wppconnect-server-1 | Node.js v18.17.0
how can I solve this????
The text was updated successfully, but these errors were encountered:
The error message it's because the nodemon command cannot be found, resulting in an "ENOENT" error. Try to install with the cross-env the nodemon:
RUN npm install -g cross-env nodemon
After that, try to build again.
Sorry, something went wrong.
No branches or pull requests
I made a docker file
ROM node:18-bullseye-slim
ENV PORT=21465
RUN apt update -y
RUN apt install wget git curl -y
RUN apt-get install -y libxshmfence-dev libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
RUN npm install -g cross-env
WORKDIR /home/node/app
COPY ./app .
#INSTALL CHROMIUM
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm google-chrome-stable_current_amd64.deb
#RUN the APP
RUN yarn install
EXPOSE 21465
This is the Error
yarn run v1.22.19
$ cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true NODE_PATH=src nodemon --watch src --exec ts-node --esm src/server.ts -e ts
wppconnect-server-1 | node:events:492
wppconnect-server-1 | throw er; // Unhandled 'error' event
wppconnect-server-1 | ^
wppconnect-server-1 |
wppconnect-server-1 | Error: spawn nodemon ENOENT
wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:283:19)
wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16)
wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
wppconnect-server-1 | Emitted 'error' event on ChildProcess instance at:
wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:289:12)
wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16)
wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
wppconnect-server-1 | errno: -2,
wppconnect-server-1 | code: 'ENOENT',
wppconnect-server-1 | syscall: 'spawn nodemon',
wppconnect-server-1 | path: 'nodemon',
wppconnect-server-1 | spawnargs: [
wppconnect-server-1 | '--watch',
wppconnect-server-1 | 'src',
wppconnect-server-1 | '--exec',
wppconnect-server-1 | 'ts-node',
wppconnect-server-1 | '--esm',
wppconnect-server-1 | 'src/server.ts',
wppconnect-server-1 | '-e',
wppconnect-server-1 | 'ts'
wppconnect-server-1 | ]
wppconnect-server-1 | }
wppconnect-server-1 |
wppconnect-server-1 | Node.js v18.17.0
how can I solve this????
The text was updated successfully, but these errors were encountered: