npm install
Copy Mnemonic on Metamask extension. If you forgot it, you can reset it on Settings/Reveal Seed Words.
On Windows 10, open PowerShell (not cmd) and use bellow command:
$env:MNEMONIC='12 words of your mnemory'
Register Infura URL on https://infura.io/
Check email to receive Infura URL.
On Windows, open PowerShell and use bellow command:
$env:INFURA_URL="https://rinkeby.infura.io/yourgeneratedcode"
node ./compile.js
npm run test
node ./deploy.js
Make sure you that: You switched to Rineby Test Net on Metamask and you must have a account with Ethers. You can use https://faucet.rinkeby.io/ to request some Ethers.