Question: `private int mShuffleMode = SharedPreferences.getInt("shufflemode");`

Tells me that a Non-static method can't be referenced from a static context.

I'm not entirely sure what this means.

What I'm trying to do is initialise the variable with the preference that was set before.

Answer: 
I had same problem here, just fixed with @angular/cli 1.6.5

```
$ npm uninstall @angular/cli
$ npm cache clean
$ npm install -g @angular/cli@latest

```

And in my project folder:

```
$ rm -rf node_modules dist
$ npm install --save-dev @angular/cli@latest
$ npm install

```

Now I can generate projects, components, etc normally
below command working for me.

```
CMD : npm install @angular-devkit/schematics@0.0.45 @angular/cli --no-save

```