Skip to content
New issue

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

NPM error on container start. #15

Open
dean-boi opened this issue Apr 17, 2024 · 1 comment
Open

NPM error on container start. #15

dean-boi opened this issue Apr 17, 2024 · 1 comment

Comments

@dean-boi
Copy link

dean-boi commented Apr 17, 2024

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
@mdopp
Copy link

mdopp commented May 12, 2024

just an idea: Are you using windows / wsl? if so, replace $(pwd) with something like the windows directory, but double-backslash

c:\\Users\\xyz\\dev\\something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants