# Error while setting up freeCodeCamp locally on ubuntu. npm run seed error

**URL:** <https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670>\
**Category:** freeCodeCamp Contributors\
**Tags:** contributing\
**Created:** [July 3, 2020, 3:11am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670 "2020-07-03T03:11:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 3, 2020, 3:11am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/1 "2020-07-03T03:11:08Z")

</div>

all prior steps goes well but on doing , sudo npm run seed  
This error appears:

i\> @freecodecamp/freecodecamp@0.0.1 seed:path-migration /home/zowhair/Documents/web/js/freeCodeCamp/freeCodeCamp1/freeCodeCamp

> cross-env DEBUG=fcc:\* node ./tools/scripts/seed/create-path-migration

internal/modules/cjs/loader.js:1023  
throw err;  
^

Error: Cannot find module ‘character-entities’  
/home/user/Docs/freeCodeCamp/tools/challenge-md-parser/node\_modules/parse-entities/index.js

- /home/user/Docs/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/lib/decode.js, parser.js,  
…/remark-parse/index.js  
…/freeCodeCamp/tools/challenge-md-parser/index.js  
../freeCodeCamp/curriculum/getChallenges.js  
../freeCodeCamp/tools/scripts/seed/create-path-migration.js

…  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed:path-migration: `cross-env DEBUG=fcc:* node ./tools/scripts/seed/create-path-migration`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed:path-migration 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! /root/.npm/\_logs/2020-07-05T08\_51\_37\_386Z-debug.log  
(node:15777) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency  
(Use `node --trace-warnings ...` to show where the warning was created)  
(node:15777) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency  
(node:15777) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency  
(node:15777) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency  
(node:15777) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.  
fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms  
ERROR: “seed:path-migration” exited with 1.  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed: `npm-run-all -p seed:*`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed 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! /root/.npm/\_logs/2020-07-05T08\_51\_37\_436Z-debug.log  
zowhair@zowhair:~/Documents/web/js/freeCodeCamp/freeCodeCamp1/free

---

<div class="post-metadata">

**Author:** ![4slimbu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/4slimbu/32/153440_2.png) [@4slimbu](https://forum.freecodecamp.org/u/4slimbu)\
**Post date:** [July 3, 2020, 4:44am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/2 "2020-07-03T04:44:57Z")

</div>

Make sure your mongodb is up and running and put db-url in your .env file:  
MONGOHQ\_URL=

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [July 3, 2020, 10:31am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/3 "2020-07-03T10:31:05Z")

</div>

Hello there,

It could be that the repo did not download fully. You may need to run `git fetch upstream` first.

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 4, 2020, 9:39am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/4 "2020-07-04T09:39:09Z")

</div>

Its already set, MONGOHQ\_URL=‘mongodb://localhost:27017/freecodecamp’

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 5:37am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/5 "2020-07-05T05:37:17Z")

</div>

Done this , but after that on doing :  
now on running  
npm run seed

following error occurs

> @freecodecamp/freecodecamp@0.0.1 seed /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp  
> npm-run-all -p seed:\*

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

> @freecodecamp/freecodecamp@0.0.1 seed:path-migration /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp  
> cross-env DEBUG=fcc:\* node ./tools/scripts/seed/create-path-migration

(node:9064) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency  
(Use `node --trace-warnings ...` to show where the warning was created)  
(node:9064) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency  
(node:9064) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency  
(node:9064) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency  
(node:9064) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.  
Oh noes!! Error seeding local auth user.  
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017  
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1142:16) {  
name: ‘MongoNetworkError’,  
[Symbol(mongoErrorContextSymbol)]: {}  
}]  
at Pool. (/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/topologies/server.js:438:11)  
at Pool.emit (events.js:315:20)  
at /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/connection/pool.js:561:14  
at /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/connection/pool.js:994:11  
at /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/connection/connect.js:31:7  
at callback (/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/connection/connect.js:264:5)  
at Socket. (/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/node\_modules/mongodb/lib/core/connection/connect.js:294:7)  
at Object.onceWrapper (events.js:422:26)  
at Socket.emit (events.js:315:20)  
at emitErrorNT (internal/streams/destroy.js:100:8) {  
[Symbol(mongoErrorContextSymbol)]: {}  
}  
internal/modules/cjs/loader.js:1023  
throw err;  
^

Error: Cannot find module ‘character-entities’  
Require stack:

- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/parse-entities/index.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/lib/decode.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/lib/parser.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/index.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/index.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/curriculum/getChallenges.js
- /home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/create-path-migration.js  
at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:1020:15)  
at Function.Module.\_load (internal/modules/cjs/loader.js:890:27)  
at Module.require (internal/modules/cjs/loader.js:1080:19)  
at require (internal/modules/cjs/helpers.js:72:18)  
at Object. (/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/parse-entities/index.js:3:25)  
at Module.\_compile (internal/modules/cjs/loader.js:1176:30)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:1196:10)  
at Module.load (internal/modules/cjs/loader.js:1040:32)  
at Function.Module.\_load (internal/modules/cjs/loader.js:929:14)  
at Module.require (internal/modules/cjs/loader.js:1080:19) {  
code: ‘MODULE\_NOT\_FOUND’,  
requireStack: [  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/parse-entities/index.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/lib/decode.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/lib/parser.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/node\_modules/remark-parse/index.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/challenge-md-parser/index.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/curriculum/getChallenges.js’,  
‘/home/user/freeCodeCamp/freeCodeCamp1/freeCodeCamp/tools/scripts/seed/create-path-migration.js’  
]  
}  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed:auth-user: `cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed:auth-user script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed:path-migration: `cross-env DEBUG=fcc:* node ./tools/scripts/seed/create-path-migration`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed:path-migration 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! /user/.npm/\_logs/2020-07-05T05\_33\_10\_019Z-debug.log

npm ERR! A complete log of this run can be found in:  
npm ERR! /user/.npm/\_logs/2020-07-05T05\_33\_10\_028Z-debug.log  
ERROR: “seed:auth-user” exited with 1.  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed: `npm-run-all -p seed:*`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed 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! /user/.npm/\_logs/2020-07-05T05\_33\_10\_069Z-debug.log

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 8:16am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/6 "2020-07-05T08:16:17Z")

</div>

now upon running : sudo run seed  
This error occurs ,

(node:10506) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency  
(node:10506) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency  
(node:10506) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.  
fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms  
fcc:tools:seedLocalAuthUser local auth user seed complete +8ms  
internal/modules/cjs/loader.js:1023  
throw err;  
^

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 8:28am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/7 "2020-07-05T08:28:39Z")

</div>

Error: Cannot find module ‘character-entities’  
Require stack:

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 8:56am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/8 "2020-07-05T08:56:21Z")

</div>

I have installed mongodb 3.6 and using ubuntu 20.04, node -v: 14.2.0, npm -v: 6.14  
I am on this step: sudo npm run seed

upon running this command I am getting this error:

> @freecodecamp/freecodecamp@0.0.1 seed:path-migration /home/zowhair/Documents/web/js/freeCodeCamp/freeCodeCamp1/freeCodeCamp  
> cross-env DEBUG=fcc:\* node ./tools/scripts/seed/create-path-migration

internal/modules/cjs/loader.js:1023  
throw err;  
^

Error: Cannot find module ‘character-entities’  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed:path-migration: `cross-env DEBUG=fcc:* node ./tools/scripts/seed/create-path-migration`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed:path-migration 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! /root/.npm/\_logs/2020-07-05T08\_51\_37\_386Z-debug.log  
(node:15777) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency  
(Use `node --trace-warnings ...` to show where the warning was created)  
(node:15777) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency  
(node:15777) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency  
(node:15777) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency  
(node:15777) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.  
fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms  
ERROR: “seed:path-migration” exited with 1.  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @freecodecamp/freecodecamp@0.0.1 seed: `npm-run-all -p seed:*`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed 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! /root/.npm/\_logs/2020-07-05T08\_51\_37\_436Z-debug.log

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [July 5, 2020, 11:11am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/9 "2020-07-05T11:11:49Z")

</div>

Hello again.

I cannot tell exactly why you are getting those errors, but here are some tips:

1. There should be no need to `sudo` anything for the fCC setup
2. I recommend you actually watch the ouput when you run both `git fetch upstream` (Make sure there are no errors before continuing), and `npm run ci` (again, make sure there are no errors before continuing).
3. When you get any errors that say: `Cannot find...` it likely means there was an error during `npm ci`. Run it again.
4. Personally, I use Ubuntu 20.04 and Node 14.2.0, and everything usually works for both my machine running Linux, and the other WSL. However, Node 12 is the recommended version that is expected to work with the setup of fCC.
5. Many issues I found came from me not having a SSH connection to GitHub.

Hope this helps

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 1:30pm UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/10 "2020-07-05T13:30:14Z")

</div>

Hi, Thanks for giving with me

Its ssh now , and again done fetch uppstream multipe times but the error is still there .  
Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.  
fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms  
fcc:tools:seedLocalAuthUser local auth user seed complete +7ms  
internal/modules/cjs/loader.js:1023  
throw err;  
^

Error: Cannot find module ‘character-entities’  
npm ERR!  
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 seed:path-migration script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [July 5, 2020, 2:19pm UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/11 "2020-07-05T14:19:00Z")

</div>

Are you getting any helpful information when running `npm ci`? Does there appear to be any related errors coming up?

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 11:31pm UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/12 "2020-07-05T23:31:30Z")

</div>

no error there

lerna notice cli v3.22.0  
lerna info versioning independent  
lerna info ci enabled  
lerna info Bootstrapping 10 packages  
lerna info Symlinking packages and binaries  
lerna success Bootstrapped 10 packages  
added 1813 packages in 14.028s

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 5, 2020, 11:36pm UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/13 "2020-07-05T23:36:32Z")

</div>

internal/modules/cjs/loader.js:1023  
throw err;  
^  
,cannot find module ‘character-entities’

on running npm run seed

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [July 6, 2020, 12:14am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/14 "2020-07-06T00:14:50Z")

</div>

Can you check for the `character-entities` package in the `node_modules` folders?

```auto
tools\challenge-md-parser\node_modules\character-entities
client\node_modules\character-entities

```

If it is missing, or even if not, try running `npm i` from inside the two subfolders (tools and client).

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 9, 2020, 12:24am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/16 "2020-07-09T00:24:57Z")

</div>

Both have character-entities,  
This folder : tools\challenge-md-parser\node\_modules\character-entities  
has a blank package.json file  
While this : client\node\_modules\character-entities folder has 4 files : index.json, license, package.json and readme.md

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 9, 2020, 12:27am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/17 "2020-07-09T00:27:54Z")

</div>

Also i ran npm i inside tools folder but still package.json in character-entities is blank

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 9, 2020, 12:28am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/18 "2020-07-09T00:28:43Z")

</div>

It also takes so much time for me but repeated those step several times and also clone the repo two times and also did upstream

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [July 9, 2020, 7:20am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/19 "2020-07-09T07:20:22Z")

</div>

if it really doesn’t work, my suggestion is to use the GitPod environment, meanwhile you try to figure out how to fix your local one

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [July 9, 2020, 3:09pm UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/20 "2020-07-09T15:09:06Z")

</div>

> [@zowhair](#):
>
> This folder : tools\challenge-md-parser\node\_modules\character-entities  
> has a blank package.json file

It shouldn’t be empty.

Can you try deleting the node\_modules folder and running npm i again from inside the `tools\challenge-md-parser` folder?

---

<div class="post-metadata">

**Author:** ![zowhair](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zowhair/32/166873_2.png) [@zowhair](https://forum.freecodecamp.org/u/zowhair)\
**Post date:** [July 10, 2020, 1:00am UTC](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670/21 "2020-07-10T01:00:21Z")

</div>

Woww…Coool…Thanks  
I did that it results success in npm run seed, but on exection of npm run develop there was an error, Then I ran: npm run clean and install all packages again using : npm ci then, all goes well.

Thanks For help Dear ❤ 💟 ❤

[Next page](https://forum.freecodecamp.org/t/error-while-setting-up-freecodecamp-locally-on-ubuntu-npm-run-seed-error/407670.md?page=2)
