- Open your "Terminal" application using "Spotlight Search"
- Run the following command:
$ curl -so- https://raw.githubusercontent.com/learn-co-curriculum/flatiron-manual-setup-validator/master/macos-phase-0-validation-script-with-py.sh | zsh 2> /dev/null
Note: your output from the verification script may include some different checks than are shown in the video. Do not be concerned if that's the case — the information in the video still applies.
If all checks pass, you have completed your environment setup and are ready to move on!
If something does not pass, that is okay. Revisit the installation instructions for the item that did not pass. If you are able to run the commands listed in the Check Your Work section for that item, this may just be an issue with the validator.
If you are having trouble getting NVM or Node to work, you may have an
issue with your .zshrc
file. To fix, we need to run two commands.
The first command makes a backup of your current .zshrc
file:
$ mv ~/.zshrc{,.bak}
The second command replaces the contents of your .zshrc
file with a default
dot file:
$ curl -sSL https://raw.githubusercontent.com/flatiron-school/dotfiles/master/.zshrc > ~/.zshrc
Close and reopen your terminal. With a new .zshrc
file, we can now test out
each tool.
To confirm NVM is installed, run:
$ nvm
If you see a message ending with "Note: to remove, delete, or uninstall nvm…"
,
NVM is installed.
If the
nvm
command is not recognized or you see an errorcomplete:13: command not found: compdef
, run the following command:$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
To confirm Node is installed, run:
$ nvm list
If you see a message starting with "-> v18.17.1" (or any number higher than this), a version of Node is installed that will work for this course.
If you don't see this number, install the newest version of Node:
$ nvm install node
To verify that Python is installed, we'll check the version:
$ python --version
# => 3.8.13
If the command returns 3.8.13
, you have the correct version installed.
Next, to check that pyenv and pipenv are working correctly, we will use pyenv to download a new python version, then use pipenv to create a virtual environment separate from our system environment. We will know everything is working correctly if the new version of Python is installed in the virtual environment and the original version is installed on the system.
# download python version 3.7.15
$ pyenv install 3.7.15
# create a virtual environment with 3.7.15
$ pipenv --python 3.7.15
# enter the virtual environment
$ pipenv shell
# check virtual environment python version
$ python3 --version
# => 3.7.15
# exit virtual environment
$ exit
# check system python version
$ python --version
# => 3.8.13
If the results of the commands match what's shown above, you're all set!