Framework7-CLI Produces Errors When Creating New Project

When trying to make a new project using NPM and Framework7-CLI I get the following error:

PS C:\sandbox\apps\usrs> framework7 create
āˆš All good, you have latest framework7-cli version.
? What type of the app are you targeting? Simple web app, Cordova app (targets native iOS and Android apps, or native de
sktop app with Electron)
? App (project) name: usrs_dispatch
? App package (Bundle ID): com.unitedstatesroadside.dispatchsystem
? Target Cordova platform: iOS, Android
? What type of framework do you prefer? Framework7 Core
? Choose starter template: Tabbed Views (Tabs)
? Should we setup project with bundler? Webpack (recommended)
? Do you want to setup CSS Pre-Processor No, i am good with CSS
? Do you want to specify custom theme color? No, use default color theme
? Do you want to include Framework7 Icons and Material Icons icon fonts? Yes, include icon fonts
āˆš Generating package.json
āˆš Creating required folders structure
- Installing NPM Dependencies (Please wait, it can take a while)events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs: [
    '/C',
    'npm install framework7 dom7 template7 framework7-icons --save'
  ]
}
PS C:\sandbox\apps\usrs> npm --version
6.14.8

As you can see, Iā€™m using the latest version of NPM. Any suggestions?

RESOLVED! For anyone else that may have this trouble, for some reason I was missing the following in my System Environment Variables under PATH:

%SystemRoot%\system32
1 Like