there’s a detailed guide for this but i’m getting an error while running one of he commands on Git Bash (npm install)
this’s the guide :
and i’m getting the following error :
‘cross-env’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 ensure-env: cross-env DEBUG=fcc:* node ./tools/scripts/ensure-env.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 ensure-env script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sofiane\AppData\Roaming\npm-cache_logs\2018-12-25T12_12_53_732Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 prebootstrap: npm run ensure-env
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 prebootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sofiane\AppData\Roaming\npm-cache_logs\2018-12-25T12_12_53_796Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 postinstall: npm run bootstrap
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sofiane\AppData\Roaming\npm-cache_logs\2018-12-25T12_12_53_853Z-debug.log
Following this guide worked for me, it has step 4 and 5 switched, try making the copy of sample.env and renaming it to .env, before running npm install.
It is expecting lerna to be globally available. It should work if you do npm i -g lerna (installing the lerna package globally so that the executable is available on the command line), then run the install again.
This isn’t great (you wouldn’t necessarily want to install it globally) so alternatively, if it is a dependency in package.json, wherever it gets called you could edit the command in the file from lerna bootstrap to ./node_modules/.bin/lerna bootstrap
i’m having one problem after another and it’s driving me crazy.
your video was pretty detailed but i’m still getting stuck with many of the steps .
now for some reason checking mongodb’s version returns this : " bash: mongod: command not found "
Gotcha. Have you followed the docs to install MongoDB on Windows? If so, you will not be running mongod start or anything of that nature. That’s only for Mac.