You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I am usingm docker-compose of the documentation to deploy node-js. Here is the doc that I am following.
I get the following problem
Attaching to svelte1_node_1
node_1 | npm ERR! code ENOENT
node_1 | npm ERR! syscall open
node_1 | npm ERR! path /home/node/app/package.json
node_1 | npm ERR! errno -2
node_1 | npm ERR! enoent ENOENT: no such file or directory, open '/home/node/app/package.json'
node_1 | npm ERR! enoent This is related to npm not being able to find a file.
node_1 | npm ERR! enoent
node_1 |
node_1 | npm ERR! A complete log of this run can be found in:
node_1 | npm ERR! /home/node/.npm/_logs/2022-07-31T13_54_31_695Z-debug.log
The error seems to indicate that there is no package.json file in the current directory where you are running the docker-compose up command.
Do you have a package.json file in your current directory with a 'start' script defined?
Docker Compose example mounts your current directory (including node_modules) to the container. It assumes that your application has a file named package.json defining start script.
There has been no activity on this issue for 11 months. The help repository works best when sustained engagement moves conversation forward. The issue will be closed in 1 month. If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.
Details
Hello I am usingm docker-compose of the documentation to deploy node-js.
Here is the doc that I am following.
I get the following problem
Node.js version
8
Example code
Operating system
Linux debian based 64 bit ARM
Scope
installation, deployment
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: