Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Alex Flores7,864 Points
I don't understand the --python=python2?
I don't understand why --python=python2 knows to download bcrypt? Also, there are other packages in the package.json file, will this load them as well?
Benjamin Barslev Nielsen18,958 Points
It is not the --python=python2 that tells npm to download bcrypt. Below is the npm command to install bcrypt
npm install bcrypt --python=python2
The npm install bcrypt part tells npm to install that package, but bcrypt depends on a python version between 2.5 and 3.0 and python in workspace is version 3.4.1, i.e., the python command refers to a wrong version. In workspace python2 refers to python version 2.7.5, so therefore we need to tell npm that it should use python2 instead of python. That is exactly what