…
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
(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;
^
/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
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;
^
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
I cannot tell exactly why you are getting those errors, but here are some tips:
There should be no need to sudo anything for the fCC setup
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).
When you get any errors that say: Cannot find... it likely means there was an error during npm ci. Run it again.
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.
Many issues I found came from me not having a SSH connection to GitHub.
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.
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
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
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.