Not able to create project in ionic 6.9.2

Hi Guys,

I am not able to create project through ionic cli, i am getting below error

ionic start test tabs

Pick a framework! :grin:

Please select the JavaScript framework to use for your new app. To bypass this prompt next time, supply a value for the
โ€“type option.

? Framework: Angular
:heavy_check_mark: Preparing directory ./test - done!
:heavy_check_mark: Downloading and extracting tabs starter - done!
? Integrate your new app with Capacitor to target native iOS and Android? No

Installing dependencies may take several minutes.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

     Ionic Advisory, tailored solutions and expert services by Ionic

                         Go to market faster ๐Ÿ†
                Real-time troubleshooting and guidance ๐Ÿ’
    Custom training, best practices, code and architecture reviews ๐Ÿ”Ž
  Customized strategies for every phase of the development lifecycle ๐Ÿ”ฎ

                    ๐Ÿ‘‰  https://ion.link/advisory  ๐Ÿ‘ˆ

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

npm i
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near โ€˜โ€ฆ1.0-rc.3","peerDepenโ€™

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/SasilGabriel/.npm/_logs/2020-05-21T14_19_51_040Z-debug.log
[ERROR] An error occurred while running subprocess npm.

    npm i exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

and my ionic info details as below.
Ionic:

Ionic CLI : 6.9.2 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : not installed
@angular-devkit/build-angular : not installed
@angular-devkit/schematics : not installed
@angular/cli : not installed
@ionic/angular-toolkit : not installed

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v12.16.3 (/usr/local/bin/node)
npm : 6.14.4
OS : macOS Mojave

Kindly do the needful resolve this issue.

Regards,
John

Same here!. In my case, I can create the project but I get all this crap. I cannot start any project!! HELP!

test@0.0.1 start C:_git\test\App\test
ng serve

An unhandled exception occurred: Cannot find module โ€˜@angular-devkit/build-angular/package.jsonโ€™
Require stack:

  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\node-modules-architect-host.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\index.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\models\architect-command.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\commands\serve-impl.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\export-ref.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\index.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\utilities\json-schema.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\models\command-runner.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\lib\cli\index.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\lib\init.js
  • C:\Users\Dragon\AppData\Roaming\npm\node_modules@angular\cli\bin\ng
    See โ€œC:\Users\Dragon\AppData\Local\Temp\ng-0nbWJq\angular-errors.logโ€ for further details.
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file C:\Windows\system32\cmd.exe
    npm ERR! errno ENOENT
    npm ERR! test@0.0.1 start: ng serve
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the test@0.0.1 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dragon\AppData\Roaming\npm-cache_logs\2020-05-21T18_28_23_192Z-debug.log

Nevermind. My solution was to remove the npm & npm-cache folders in my AppData/Roaming folder, uninstall Node, install it again, install @angular/cli @ionic/cli cordova-res and voilรก, everything worked.

Try to do that @johnmobiledev, it may help.

2 Likes