kreteshq / kretes

A Programming Environment for TypeScript & Deno
https://kretes.dev/
Other
675 stars 35 forks source link

[BUG] unable to create a project #121

Open draylegend opened 3 years ago

draylegend commented 3 years ago

Problem

Trying to create a project following the instructions on the home page.

Error

    Kretes  1.0.0-alpha.58
       new  creating a project in 'crm'
       new  installing dependencies
events.js:377
      throw er; // Unhandled 'error' event
      ^

Error: spawn npx ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npx',
  path: 'npx',
  spawnargs: [ 'pnpm', 'install' ]
}

Expectations

A project should be created either with npm, pnpx, yarn or npx.

It didn't work with vscode.

image

Versions

node: v14.17.4 npm: 6.14.14

Am I doing something wrong? How can I create the project manually, without using the cli or vscode?

draylegend commented 3 years ago

and this is the output for the kretes latest version

    Kretes  1.0.0-alpha.61
       new  creating a project in 'crm'
       new  installing dependencies
events.js:377
      throw er; // Unhandled 'error' event
      ^

Error: spawn npx ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npx',
  path: 'npx',
  spawnargs: [ 'pnpm', 'install' ]
}