Question: Consider the following code:
Output is the result.

```
let array = [1, 5, 2]
var result = [Int]()
var stack = 0
array.forEach {
  result.append($0 + stack)
  stack += $0 + 1
}

```

Is there a way to write those with .map or other high order functions?

```
let result = array.map { 
  // fill this up plz
}

```

Answer: 
I have found the issue. The problem was due to the node version I was using, which at the time was 14.15.3. This version is not compatible with my current version of postgres 13.1 so I used nvm and downgraded to node 11.15.0 and now my sequelize commands are working.
My node version is 16 and I am guessing Postgres 13 is not compatible with it hence, I had to downgrade my node version to 11.15.0.

Downgrade your node version to 11.15.0 by downloading nvm from [here](https://github.com/coreybutler/nvm-windows/releases/download/1.1.7/nvm-setup.zip)

Unzip the downloaded zip file and install. Click next and accept all default settings -- Do not customize the settings. If you have node already installed it might detect your current node version and ask to take control of it click yes.

After the installation process is done, open CMD or Powershell and type

> 
> nvm list
> 
> 
> 

This is will show you the list of node versions installed, then type

> 
> nvm install 11.15.0
> 
> 
> 

After installing the node 11.15.0 type

> 
> nvm list
> 
> 
> 

To list the newly installed node version along with your previously installed node and then type

> 
> nvm use 11.15.0
> 
> 
> 

Then go back to your vscode and run your project again.

#EDIT

If you're from ALX-Cloud Developer Program I suggest you downgrade your node version to 12 because Angular CLI version is only compatible with node v12 and above(at the time of writing this). Good luck!!!