Skip to content

NPM error on container start. #15

@dean-boi

Description

@dean-boi

Hi, I tried pulling / running the docker image with the --init flag as described in the README...

cd <path-to-your-evidence-project-root>
docker run -v=$(pwd):/evidence-workspace -p=3000:3000 -it --rm evidencedev/devenv:latest --init

... though it gives me the below npm error:

Starting Evidence.dev development environment mounted on /evidence-workspace in the container.
Provided arguments => --init
Starting with a blank template project.
npm info using [email protected]
npm info using [email protected]
! destination directory is not empty, aborting. Use --force to override
Running command => npm run dev -- --host 0.0.0.0
npm info using [email protected]
npm info using [email protected]
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /evidence-workspace/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/evidence-workspace/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-04-17T08_08_41_677Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions