Npm install fails after git clean

I’ve been working on a new project and now, after initially checking it into git, I did a git clean to make sure that someone else would be able to checkout and get all the files.
Problem is, when I run npm install I get an error related to node-sass

C:\Users\usecarkm\Source\Repos\ui\IonicPages>npm install
npm WARN prefer global node-gyp@3.6.0 should be installed with -g

> node-sass@4.5.0 install C:\Users\usecarkm\Source\Repos\ui\IonicPages\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/vhttps://registry.npmjs.org/node-sass/-/node-sass-4.5.0.tgz/win32-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/vhttps://registry.npmjs.org/node-sass/-/node-sass-4.5.0.tgz/win32-x64-48_binding.node":

HTTP error 404 Not Found

My ionic info:

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI      : 6.5.0
    Ionic CLI        : 3.5.0

local packages:

    @ionic/app-scripts              : https://registry.npmjs.org/@ionic/app-scripts/-/app-scripts-1.3.0.tgz
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : none
    Ionic Framework                 : ionic-angular https://registry.npmjs.org/ionic-angular/-/ionic-angular-3.1.1.tgz

System:

    Node       : v6.10.2
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.0.3

Did I clean up something I shouldn’t have?

EDIT:
I’ve just noticed someone else with what appears to be the same issue, here:
Can not start new project on ionic 1 … but as yet unanswered.

This is strange. There should only be version numbers - and app-scripts 1.3.0 causes these issues with npm5.

Please post your packages.json content so we can fix this.

Based on a lot of other posts recently, I realized that there’s problems with npm v5. I uninstalled nodejs (completely: https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows), then reinstalled v6.11.1 which contains npm v3.10.10, and this fixes the error I was getting.

I saw your post just after mine. In case it’s still relevant, here’s my package.json contents:

{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.0.2",
    "@angular/compiler": "4.0.2",
    "@angular/compiler-cli": "4.0.2",
    "@angular/core": "4.0.2",
    "@angular/forms": "4.0.2",
    "@angular/http": "4.0.2",
    "@angular/platform-browser": "4.0.2",
    "@angular/platform-browser-dynamic": "4.0.2",
    "@ionic-native/camera": "^3.12.1",
    "@ionic-native/camera-preview": "^3.7.0",
    "@ionic-native/core": "^3.5.0",
    "@ionic-native/diagnostic": "^3.12.1",
    "@ionic-native/in-app-browser": "^3.10.3",
    "@ionic-native/nfc": "^3.8.1",
    "@ionic-native/splash-screen": "3.4.2",
    "@ionic-native/status-bar": "3.4.2",
    "@ionic-native/themeable-browser": "^3.10.3",
    "@ionic/storage": "2.0.1",
    "chart.js": "^2.6.0",
    "ionic-angular": "3.1.1",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "^1.0.0",
    "@ionic/app-scripts": "1.3.0",
    "@ionic/cli-plugin-cordova": "1.4.1",
    "@ionic/cli-plugin-ionic-angular": "1.3.2",
    "typescript": "~2.2.1"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-statusbar",
    "cordova-plugin-device",
    "ionic-plugin-keyboard",
    "cordova-plugin-splashscreen"
  ],
  "cordovaPlatforms": [],
  "description": "Orion_Ionic: An Ionic project"
}

Ok, something in your npm got really strange packages.

For npm5 to work (5.03 and 5.1.0 work just fine now) with Ionic you need a newer app-scripts - best 1.3.12 or even a 2.x (but read the changelog for this).