I also tried this on work computer today.
On windows 10
Command: npx @strapi-community/dockerize@latest
Output:
@strapi-community/dockerize v1.11.0 by Simen Daehlin
Easy add docker support for a Strapi Project
https://github.com/strapi-community/strapi-tool-dockerize
� You, and 755 other people have used this tool this month
� JavaScript project detected
� NPM detected
⛔️ Strapi project not detected
√ Do you want to create a new Strapi Project ... No / Yes
√ Whats the name of the project? ... mystrapi
√ Do you want to use TypeScript ... No / Yes
� Creating Strapi Project from npx create-strapi-app@latest - please wait...
node:events:498
throw er; // Unhandled 'error' event
^
Error: spawn npx ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn npx',
path: 'npx',
spawnargs: [
'create-strapi-app@latest',
'mystrapi',
'--quickstart',
'--typescript',
'--no-run'
]
}
When I try npx @strapi-community/dockerize (without latest at the end) I get the same error.
On WSL Ubuntu I get /usr/bin/env: ‘bash\r’: No such file or directory with this command