Npm install not working after upgrade to ionic 3


#1

Hello,

after I installed the latest version of ionic (3.4.0) I cant create a new app, I run the following commands, please help!

npm install -g ionic@latest

npm install @ionic/cli-plugin-cordova

npm install @ionic/cli-plugin-ionic-angular

npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest

npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest

C:\Users\musas>ionic start ionic3app blank
[WARN] Git CLI not found on your PATH. You may wish to install it to version control your app.
See installation docs for git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

   Use --no-git to disable this warning.

:heavy_check_mark: Creating directory .\ionic3app - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
:heavy_check_mark: Downloading - done!
[INFO] Fetching starter template blank (https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz)
:heavy_check_mark: Downloading - done!
:heavy_check_mark: Updating package.json with app details - done!
:heavy_check_mark: Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!

npm install
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):

    npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
    npm ERR! code ENOGIT
    npm ERR! No git binary found in $PATH
    npm ERR!
    npm ERR! Failed using git.
    npm ERR! Please check if you have git installed and in your PATH.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\musas\AppData\Roaming\npm-cache\_logs\2017-06-28T17_19_56_280Z-debug.log

and app-scripts not installed successfully!


#2

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.


#3

There were multiple similar reports as this today, mostly related to some bonjour library, your error message is different though.

Do you have git installed? (git version to test)
What does ionic info output?


#4

ionic info output is

global packages:

@ionic/cli-utils : 1.4.0
Ionic CLI        : 3.4.0

System:

Node       : v6.11.0
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.4