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: 
Try removing the Angular CLI and reinstalling it again:

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

```

To ensure you have the latest version. IF the problem persists, try updating the Node version (6.11.4 is a bit old). You can use nvm to update your node version. Download and install the package from [here](https://github.com/coreybutler/nvm-windows), then run

```
$  nvm install 8.9.0 // for example, you can have another version
$  nvm use 8.9.0 // or the version you have installed

```

If this STILL persists, we can assume there is a problem with `@angular/cli`. You can try downgrading it. Remove it again and then

```
$  npm install -g @angular/cli@1.1.2 // for example

```
I made the following changes installing this packages:

```
"@angular-devkit/build-optimizer": "0.0.36",
"@angular-devkit/core": "0.0.22",
"@angular-devkit/schematics": "0.0.42",
"@schematics/angular": "^0.1.11",
"@schematics/schematics": "0.0.11"

```

And it works now

[My Configuration](https://i.stack.imgur.com/lPxNd.jpg)