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

Npx Create-video doesnt Work on Windows #46

Closed
mahmoodfathy opened this issue Feb 10, 2021 · 5 comments · Fixed by #56
Closed

Npx Create-video doesnt Work on Windows #46

mahmoodfathy opened this issue Feb 10, 2021 · 5 comments · Fixed by #56

Comments

@mahmoodfathy
Copy link

mahmoodfathy commented Feb 10, 2021

Problem Description : When running npx create-video it exits with the following error code

npx create-video npx: installed 24 in 3.292s What's the name of your project? (my-video) my-video Error: Command failed with exit code 1: copy -r C:\Users\mahmo\AppData\Roaming\npm-cache_npx\11472\node_modules\create-video_template my-video
The system cannot find the file specified. at makeError (C:\Users\mahmo\AppData\Roaming\npm-cache_npx\11472\node_modules\create-video\node_modules\execa\lib\error.js:59:11)
at handlePromise (C:\Users\mahmo\AppData\Roaming\npm-cache_npx\11472\node_modules\create-video\node_modules\execa\index.js:114:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5) at async C:\Users\mahmo\AppData\Roaming\npm-cache_npx\11472\node_modules\create-video\dist\init.js:43:5 { shortMessage: 'Command failed with exit code 1: copy -r C:\Users\mahmo\AppData\Roaming\npm-cache\_npx\11472\node_modules\create-video\_template my-video',
command: 'copy -r C:\Users\mahmo\AppData\Roaming\npm-cache\_npx\11472\node_modules\create-video\_template my-video',
exitCode: 1, signal: undefined, signalDescription: undefined, stdout: 'The system cannot find the file specified.', stderr: '', failed: true, timedOut: false, isCanceled: false, killed: false }

Other details:

npx envinfo npx: installed 1 in 3.561s System:
OS: Windows 10 10.0.18363
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 7.93 GB / 15.88 GB

Binaries:
Node: 14.15.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD

Managers:
pip3: 20.2.3 - C:\Python39\Scripts\pip3.EXE

Utilities:
Git: 2.29.2.

Virtualization:
Docker: 20.10.2 - C:\ProgramData\DockerDesktop\version-bin\docker.EXE

IDEs:
VSCode: 1.52.1 - C:\Users\mahmo\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
Languages:
Python: 3.9.0

@cubu
Copy link

cubu commented Feb 10, 2021

I have the same error

@IAndreaGiuseppe
Copy link

same here

@eperedo
Copy link

eperedo commented Feb 10, 2021

Looks like the problem is in the dotfiles.ts file . Not sure why the code search for a _gitignore with the underscore in front. If you replace for a dot it throw an error in the copy process.

A workaround in windows is to install create-video as a dependency in any node project and then manually copy and install the dependencies of the _template folder.

  1. Create a npm project
    npm init -f
  2. Install create-video
    npm install create-video -D
  3. Go to node_modules/create-video/_template and copy that folder anywhere in your computer
  4. Go to that new folder and install the dependencies
    npm install
  5. Now build your videonpm run build
  6. Watch your video in the same folder under out.mp4

Hope it helps.

@mahmoodfathy
Copy link
Author

@eperedo can confirm that this workaround does work , thanks , i will experiment more on this today

@JonnyBurger
Copy link
Member

Sorry about that! I now have properly setup Windows on my computer and can test it in the future! Plus, in the next release, these issues will be resolved 🎉

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

Successfully merging a pull request may close this issue.

5 participants