mdbootstrap / mdb-cli

Command Line Interface for MDB (https://mdbootstrap.com/) - learn more about CLI via the link below
https://mdbootstrap.com/docs/standard/cli/
57 stars 26 forks source link

mdb init Pro problem #1

Closed xvMODvx closed 5 years ago

xvMODvx commented 5 years ago

When typing mdb list all the products are listed as available. When running mdb init all the Pro versions give the same error response:

$ mdb init
? Choose project to initialize jquery-ui-kit
Initializing...
[========================================================================] 0.0 s

? Missing package.json file. Create? Yes
Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'init', '--yes' ]
}

While all the non Pro options work correctly displaying:

mdb init
? Choose project to initialize bootstrap-material-design
Initializing...
Cloning into 'bootstrap-material-design'...

┌─────────┬────────┬─────────────────────────────┐
│ (index) │ Status │           Message           │
├─────────┼────────┼─────────────────────────────┤
│    0    │   0    │ 'Initialization completed.' │
└─────────┴────────┴─────────────────────────────┘
catchmareck commented 5 years ago

What environment do you use? I mean OS, Node/npm version etc

catchmareck commented 5 years ago

I'm closing this issue since it's been inactive for over a month.