I configure freecodecamp locally like these. but it doesn't work. what is the problem

Microsoft Windows [Version 10.0.18362.239]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\free\freeCodeCamp>git remote -v
origin  https://github.com/igited/freeCodeCamp.git (fetch)
origin  https://github.com/igited/freeCodeCamp.git (push)
upstream        https://github.com/freeCodeCamp/freeCodeCamp.git (fetch)
upstream        https://github.com/freeCodeCamp/freeCodeCamp.git (push)

C:\free\freeCodeCamp>node -v
v10.16.0

C:\free\freeCodeCamp>npm -v
6.9.0

C:\free\freeCodeCamp>copy sample.env .env
Overwrite .env? (Yes/No/All): yes
        1 file(s) copied.

C:\free\freeCodeCamp>nmp ci
'nmp' is not recognized as an internal or external command,
operable program or batch file.

C:\free\freeCodeCamp>npm ci
npm WARN prepare removing existing node_modules/ before installation

> fsevents@1.2.9 install C:\free\freeCodeCamp\node_modules\fsevents
> node install


> husky@1.3.1 install C:\free\freeCodeCamp\node_modules\husky
> node husky install

husky > setting up git hooks
husky > done

> @freecodecamp/freecodecamp@0.0.1 postinstall C:\free\freeCodeCamp
> npm run bootstrap


> @freecodecamp/freecodecamp@0.0.1 bootstrap C:\free\freeCodeCamp
> lerna bootstrap --ci

lerna notice cli v3.16.0
lerna info versioning independent
lerna info ci enabled
lerna info Bootstrapping 11 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna success Bootstrapped 11 packages
added 1350 packages in 463.723s

C:\free\freeCodeCamp>"C:\Program Files\MongoDB\Server\4.0\bin\mongod"
2019-07-29T19:34:34.890+0300 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-07-29T19:34:34.897+0300 I CONTROL  [initandlisten] MongoDB starting : pid=5588 port=27017 dbpath=C:\data\db\ 64-bit host=DESKTOP-9IRESI3
2019-07-29T19:34:34.898+0300 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2019-07-29T19:34:34.898+0300 I CONTROL  [initandlisten] db version v4.0.11
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten] git version: 417d1a712e9f040d54beca8e4943edce218e9a8c
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten] allocator: tcmalloc
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten] modules: none
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten] build environment:
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten]     distmod: 2008plus-ssl
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten]     distarch: x86_64
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten]     target_arch: x86_64
2019-07-29T19:34:34.899+0300 I CONTROL  [initandlisten] options: {}
2019-07-29T19:34:34.910+0300 I STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminating
2019-07-29T19:34:34.921+0300 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2019-07-29T19:34:34.921+0300 I CONTROL  [initandlisten] now exiting
2019-07-29T19:34:34.921+0300 I CONTROL  [initandlisten] shutting down with code:100

C:\free\freeCodeCamp>npm run seed

> @freecodecamp/freecodecamp@0.0.1 seed C:\free\freeCodeCamp
> npm-run-all -p seed:*


> @freecodecamp/freecodecamp@0.0.1 seed:auth-user C:\free\freeCodeCamp
> cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser


> @freecodecamp/freecodecamp@0.0.1 seed:challenges C:\free\freeCodeCamp
> cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedChallenges

  fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms
  fcc:tools:seedLocalAuthUser local auth user seed complete +2s
  fcc:tools:seedChallenges Connected successfully to mongo at mongodb://localhost:27017/freecodecamp +0ms
  fcc:tools:seedChallenges deleted all the challenges +105ms
  fcc:tools:seedChallenges generating path migration map +21s
  fcc:tools:seedChallenges path migration map generated +2s
  fcc:tools:seedChallenges challenge seed complete +1s

C:\free\freeCodeCamp>npm run develop

> @freecodecamp/freecodecamp@0.0.1 develop C:\free\freeCodeCamp
> npm-run-all ensure-env -p develop:*


> @freecodecamp/freecodecamp@0.0.1 ensure-env C:\free\freeCodeCamp
> cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js

  fcc:tools:ensure-env ignoring creation of redirect file in undefined +0ms
  fcc:tools:ensure-env pathMigration present +25ms

> @freecodecamp/freecodecamp@0.0.1 develop:client C:\free\freeCodeCamp
> cd ./client && npm run develop


> @freecodecamp/freecodecamp@0.0.1 develop:server C:\free\freeCodeCamp
> cd ./api-server && npm run develop


> @freecodecamp/api-server@0.0.1 develop C:\free\freeCodeCamp\api-server
> node development-entry.js


> @freecodecamp/client@1.0.0 predevelop C:\free\freeCodeCamp\client
> npm run prebuild


> @freecodecamp/client@1.0.0 prebuild C:\free\freeCodeCamp\client
> npm run build:workers && node ../tools/scripts/build/ensure-env.js


> @freecodecamp/client@1.0.0 build:workers C:\free\freeCodeCamp\client
> node --max_old_space_size=7168 node_modules/webpack-cli --env.production --config ./webpack-workers.js --progress

Debugger listening on ws://0.0.0.0:9229/a3345703-029f-43d7-9495-77d0098025e9
For help, see: https://nodejs.org/en/docs/inspector
Hash: 06a119db7f09f8828f11
Version: webpack 4.28.4
Time: 140811ms
Built at: 07/29/2019 7:41:09 PM
                               Asset       Size  Chunks                    Chunk Names
                   enzyme-adapter.js  185 bytes    2, 1  [emitted]         enzyme-adapter
               enzyme-adapter.js.map   94 bytes    2, 1  [emitted]         enzyme-adapter
                           enzyme.js  177 bytes    1, 2  [emitted]         enzyme
                       enzyme.js.map   86 bytes    1, 2  [emitted]         enzyme
                     frame-runner.js    186 KiB       3  [emitted]         frame-runner
                 frame-runner.js.map    886 KiB       3  [emitted]         frame-runner
                     sass-compile.js   1.33 KiB       4  [emitted]         sass-compile
                 sass-compile.js.map   5.76 KiB       4  [emitted]         sass-compile
                        sass.sync.js   4.27 MiB          [emitted]  [big]
                   test-evaluator.js    165 KiB    5, 6  [emitted]         test-evaluator
               test-evaluator.js.map    869 KiB    5, 6  [emitted]         test-evaluator
                     vendors~chai.js   67.8 KiB       6  [emitted]         vendors~chai
                 vendors~chai.js.map    419 KiB       6  [emitted]         vendors~chai
           vendors~enzyme-adapter.js    228 KiB       7  [emitted]         vendors~enzyme-adapter
       vendors~enzyme-adapter.js.map    763 KiB       7  [emitted]         vendors~enzyme-adapter
    vendors~enzyme~enzyme-adapter.js    529 KiB       0  [emitted]  [big]  vendors~enzyme~enzyme-adapter
vendors~enzyme~enzyme-adapter.js.map   2.09 MiB       0  [emitted]         vendors~enzyme~enzyme-adapter
Entrypoint frame-runner = frame-runner.js frame-runner.js.map
Entrypoint sass-compile = sass-compile.js sass-compile.js.map
Entrypoint test-evaluator = test-evaluator.js test-evaluator.js.map
[322] (webpack)/buildin/global.js 472 bytes {0} {5} {6} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[365] ./src/client/frame-runner.js 5.13 KiB {3} [built]
      ModuleConcatenation bailout: Module uses eval()
[369] ./src/client/workers/sass-compile.js 756 bytes {4} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[370] ./src/client/workers/test-evaluator.js 3.51 KiB {5} [built]
      ModuleConcatenation bailout: Module uses eval()
[416] (webpack)/buildin/module.js 497 bytes {0} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[482] readable-stream (ignored) 15 bytes {1} {2} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[491] util (ignored) 15 bytes {1} {2} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[492] util (ignored) 15 bytes {1} {2} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
[557] ./util.inspect (ignored) 15 bytes {1} {2} [built]
      ModuleConcatenation bailout: Module is not an ECMAScript module
    + 801 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  vendors~enzyme~enzyme-adapter.js (529 KiB)
  sass.sync.js (4.27 MiB)

> @freecodecamp/client@1.0.0 develop C:\free\freeCodeCamp\client
> node --inspect=0.0.0.0:9228 node_modules/gatsby-cli develop

Debugger listening on ws://0.0.0.0:9228/91b6f120-291c-42fc-9276-a6e2c7b2456e
success open and validate gatsby-configs - 1.543 s
error
Something went wrong installing the "sharp" module
β•‘                                                                        β•‘
Cannot find module '../build/Release/sharp.node'e analytics              β•‘
β•‘   to help improve Gatsby for all users.                                β•‘
- Remove the "node_modules/sharp" directory, run "npm install" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
- Search for this error at https://github.com/lovell/sharp/issues        β•‘
β•‘                                                                        β•‘
β ‹ load plugins═══════════════════════════════════════════════════════════╝
npm ERR! code ELIFECYCLE
npm ERR! errno 1ls:about no google applications credentials environmental variable found
npm ERR! @freecodecamp/client@1.0.0 develop: `node --inspect=0.0.0.0:9228 node_modules/gatsby-cli develop`
npm ERR! Exit status 1ut 'activeUser' api will always return 0
npm ERR! ver:utils:about this can safely be ignored during development +32s
npm ERR! Failed at the @freecodecamp/client@1.0.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  fcc:server connecting to db at mongodb://localhost:27017/freecodecamp +7ms
npm ERR! A complete log of this run can be found in:nge.js:22
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-29T16_46_30_210Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 develop:client: `cd ./client && npm run develop`
npm ERR! Exit status 1freeCodeCamp\api-server\common\models/challenge.js:20:15)
npm ERR! meout._onTimeout (C:\free\freeCodeCamp\api-server\node_modules\loopback-datasource-juggler\lib\datasource.js:2566:7)
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 develop:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    at listOnTimeout (timers.js:263:5)
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-29T16_46_35_999Z-debug.log
ERROR: "develop:client" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 develop: `npm-run-all ensure-env -p develop:*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 develop 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\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-29T16_46_49_786Z-debug.log

C:\free\freeCodeCamp>
i configured freecodecamp locally in order to use offline like the above. but when i browse using Localhost:800, it doesn't work please help me to fix this problem.`Preformatted text`

For help with installing locally FreeCodeCamp, your best bet is the Gitter Contributors room

1 Like

for freecodecamp community: we want the full video tutorial on how to setup freecodecamp locally.please give us a video tutorial if it it possible
thank you for your service.

freecodecamp is completely user based, so maybe you could figure out how things work and that could be your contribution to the community!

I assure you that people would still need case by case help

1 Like

I remember having this problem at one point but I’m not sure I remember how I fixed it.

Try deleting the node_modules folder under the client folder and run npm i from inside the client folder. Then cd out to the root again and run the same commands as before.

4 Likes

Thanks a great deal. This solved my issue