Install Python
I will assume that node and npm are already up and running on your machine. You need to have Python 2.7.x installed. Version 3 is out already but we need 2.7. During the install you have to manually enable the option that puts Python in your Path environment variable.
Install jest-cli
Open a command prompt in your project root and type:
npm install jest-cli --save-dev --msvs-version=2013
The reason you need the --msvs-version option is that the contextify node package will need to be built using VS build tools and it will look for 2010 by default. Be sure to specify the correct version on your machine. Credit goes to Kevin Griffin for his article on this.
If all goes well you should see no errors. Here is what my package.json file looks like afterwards:
{
"name": "reapcast",
"version": "1.0.0",
"description": "smart podcasting",
"devDependencies": {
"jest-cli": "^0.1.18"
},
"scripts": {
"test": "jest"
}
}
Thanks for your post. Noticed a small typo that held me up for a moment, "--msvs-version" should be "--msvs_version".
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHDHub4u appreciates this helpful breakdown of how to address issues with npm install. Your clear explanations and troubleshooting steps make it much easier for developers to understand what’s going wrong and how to fix it — great post!
ReplyDeleteJust want to say TechTimeExpress has revolutionized how I consume technology news. The fast-paced updates keep me informed about digital innovation without overwhelming me. Every article is concise, informative, and perfectly timed for busy professionals.
ReplyDeleteBeen following this incredible platform, TechTurkish, for months and haven't missed a single update. The coverage of AI advancements, startup ecosystems, and gadget launches is thorough and engaging. Outstanding work highlighting Turkey's tech scene!
ReplyDeleteGenuinely appreciate how TechTweeted curates relevant tech content that's both informative and engaging. From software trends to gadget reviews, every article adds value and keeps me updated on the digital transformation happening worldwide.
ReplyDelete