// deletes the last commit
git reset --hard HEAD^
// where X is the number of commits to undo
git reset HEAD~X
WARNING: You are using pip version 19.2.3, however version 20.2 is available. You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
// full error message
WARNING: You are using pip version 19.2.3, however version 20.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
// run
python -m pip install --upgrade pip --user --trusted-host files.pythonhosted.org --trusted-host pypi.org
Could not fetch URL https://pypi.org … There was a problem confirming the ssl certificate.
// Full error message
Could not fetch URL https://pypi.org/simple/autopep8/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='some.host.net', port=444): Max retries exceeded with url: /?cfru=aHR0cHM6Ly9weXBpLm9yZy9zaW1wbGUvYXV0b3BlcDgv (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) - skipping
// This could mean there is no local certificate to read from. See this post
Could not install packages due to an EnvironmentError [Error 13] Permission denied:
// error message when installing a pip package
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'C:\\Python38\\Lib\\site-packages\\__pycache__\\pycodestyle.cpython-38.pyc'
Consider using the `--user` option or check the permissions.
// just add --user to the command. ex:
python -m pip install autopep8 --user --trusted-host files.pythonhosted.org --trusted-host pypi.org
Update node via npm
// install this
sudo npm i -g n
// run this command
sudo n latest