Error when running node seed on local environemtn

Hi,
I run into following error, when running FCC on my dev environment?
I tried installing npm install rev-manifest, but it does not help?

Can somebody please throw some light on the issue?
Thanks,
Manish

vagrant@freecodecamp:~/FreeCodeCamp$ node seed
Error: Cannot find module '…/rev-manifest’
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function._load (/home/vagrant/FreeCodeCamp/node_modules/pmx/lib/transaction.js:62:21)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/vagrant/FreeCodeCamp/server/middlewares/jade-helpers.js:1:1)
at Module._compile (module.js:435:26)
at loader (/home/vagrant/FreeCodeCamp/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/vagrant/FreeCodeCamp/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function._load (/home/vagrant/FreeCodeCamp/node_modules/pmx/lib/transaction.js:62:21)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at /home/vagrant/FreeCodeCamp/node_modules/loopback-boot/lib/executor.js:343:19
at Array.forEach (native)

+1 on this…

When I run node seed locally, I get this error when I try to get to the map page, the challenges don’t show up either.

I followed contribution instructions step by step. All versions of all plugins + npm and mongo are up to date. I tried recloning my fork and starting over twice and the same thing happens when I run node seed.

Any help would be appreciated.

[HMR] bundle has warnings:
./~/babel-core/lib/transformation/file/options/option-manager.js
Critical dependencies:
174:19-37 the request of a dependency is an expression
302:16-34 the request of a dependency is an expression
@ ./~/babel-core/lib/transformation/file/options/option-manager.js 174:19-37 302:16-34
./~/babel-core/lib/transformation/file/index.js
Critical dependencies:
510:24-39 the request of a dependency is an expression
709:16-34 the request of a dependency is an expression
@ ./~/babel-core/lib/transformation/file/index.js 510:24-39 709:16-34
problems @ client.js:119
processMessage @ client.js:159
handleMessage @ client.js:72
index.js:222 GET http://localhost:3000/services/map;lang=en?_csrf=dwZrIcVE-5F2hd3TSWfBvJtBS13OaZPBnlJM&returnMeta=true 500 (Internal Server Error)
_createXHR @ index.js:222
createXHR @ index.js:50
io @ http.client.js:171
doXhr @ http.client.js:167
get @ http.client.js:242
executeRequest @ fetcher.client.js:245
Request.end @ fetcher.client.js:168
read @ fetcher.client.js:392
(anonymous) @ services-creator.js:19
tryCatcher @ rx.all.js:63
setDisposable @ rx.all.js:11772
Rx.AnonymousObservable.AnonymousObservable._subscribe @ rx.all.js:11789
Rx.Observable.observableProto.subscribe.observableProto.forEach @ rx.all.js:2034
scheduleMethod @ rx.all.js:2243
invokeRecImmediate @ rx.all.js:1051
ScheduledItem.invokeCore @ rx.all.js:980
ScheduledItem.invoke @ rx.all.js:968
runTrampoline @ rx.all.js:1209
tryCatcher @ rx.all.js:63
CurrentThreadScheduler.schedule @ rx.all.js:1225
Rx.ObservableBase.ObservableBase._subscribe @ rx.all.js:2095
Rx.Observable.observableProto.subscribe.observableProto.forEach @ rx.all.js:2034
(anonymous) @ index.js:93
(anonymous) @ bundle.js:143338
(anonymous) @ bundle.js:143339
webpack_require @ bootstrap 9403cd7…:555
fn @ bootstrap 9403cd7…:86
(anonymous) @ bootstrap 9403cd7…:578
webpack_require @ bootstrap 9403cd7…:555
(anonymous) @ bootstrap 9403cd7…:578
(anonymous) @ bootstrap 9403cd7…:578
index.js:222 GET http//localhost:3000/services/map;lang=en?_csrf=dwZrIcVE-5F2hd3TSWfBvJtBS13OaZPBnlJM&returnMeta=true 500 (Internal Server Error)
_createXHR @ index.js:222
createXHR @ index.js:50
io @ http.client.js:171
doXhr @ http.client.js:167
get @ http.client.js:242
executeRequest @ fetcher.client.js:245
Request.end @ fetcher.client.js:168
read @ fetcher.client.js:392
(anonymous) @ services-creator.js:19
tryCatcher @ rx.all.js:63
setDisposable @ rx.all.js:11772
Rx.AnonymousObservable.AnonymousObservable._subscribe @ rx.all.js:11789
Rx.Observable.observableProto.subscribe.observableProto.forEach @ rx.all.js:2034
scheduleMethod @ rx.all.js:2243
scheduleWork @ rx.all.js:1069
ScheduledItem.invokeCore @ rx.all.js:980
ScheduledItem.invoke @ rx.all.js:968
runTrampoline @ rx.all.js:1209
tryCatcher @ rx.all.js:63
CurrentThreadScheduler.schedule @ rx.all.js:1225
innerAction @ rx.all.js:1057
InnerObserver.error @ rx.all.js:2269
Rx.internals.AbstractObserver.AbstractObserver.onError @ rx.all.js:1772
tryCatcher @ rx.all.js:63
AutoDetachObserverPrototype.error @ rx.all.js:11818
Rx.internals.AbstractObserver.AbstractObserver.onError @ rx.all.js:1772
(anonymous) @ services-creator.js:7
run @ setImmediate.js:43
runIfPresent @ setImmediate.js:69
onGlobalMessage @ setImmediate.js:109
index.js:222 GET http://localhost:3000/services/map;lang=en?_csrf=dwZrIcVE-5F2hd3TSWfBvJtBS13OaZPBnlJM&returnMeta=true 500 (Internal Server Error)
_createXHR @ index.js:222
createXHR @ index.js:50
io @ http.client.js:171
doXhr @ http.client.js:167
get @ http.client.js:242
executeRequest @ fetcher.client.js:245
Request.end @ fetcher.client.js:168
read @ fetcher.client.js:392
(anonymous) @ services-creator.js:19
tryCatcher @ rx.all.js:63
setDisposable @ rx.all.js:11772
Rx.AnonymousObservable.AnonymousObservable._subscribe @ rx.all.js:11789
Rx.Observable.observableProto.subscribe.observableProto.forEach @ rx.all.js:2034
scheduleMethod @ rx.all.js:2243
scheduleWork @ rx.all.js:1069
ScheduledItem.invokeCore @ rx.all.js:980
ScheduledItem.invoke @ rx.all.js:968
runTrampoline @ rx.all.js:1209
tryCatcher @ rx.all.js:63
CurrentThreadScheduler.schedule @ rx.all.js:1225
innerAction @ rx.all.js:1057
InnerObserver.error @ rx.all.js:2269
Rx.internals.AbstractObserver.AbstractObserver.onError @ rx.all.js:1772
tryCatcher @ rx.all.js:63
AutoDetachObserverPrototype.error @ rx.all.js:11818
Rx.internals.AbstractObserver.AbstractObserver.onError @ rx.all.js:1772
(anonymous) @ services-creator.js:7
run @ setImmediate.js:43
runIfPresent @ setImmediate.js:69
onGlobalMessage @ setImmediate.js:109
err-saga.js:7 Error: {“output”:{“message”:“Cannot convert undefined or null to object”},“meta”:{}}
at Object.callback (http.client.js:199)
at cbOnce (index.js:62)
at loadFunc (index.js:129)
at XMLHttpRequest.readystatechange (index.js:68)

@msapariya Try running npm run only-once. It generates the file for you. This step is missing from the guide on the Wiki you commented on. I will update it. Sorry for the troubles!

@alexr101 I’m not certain about this, but this looks like an error we had with a package. Make sure you have the latest updates by running git pull --rebase upstream staging, then run npm install to update the packages. I’d be happy to investigate further if that doesn’t work.

1 Like

Is mongod still running in a different tab of your terminal? This is a requirement.

Hi, thanks guys

@systimotic I’ll try that right now, and see what happens.

@dhcodes yes, sir I am. I followed instruction in the contribution about 3 times. deleting and recloning the project each time. Mongo was running every time.

Also, I’m suspecting the problem might be with mongo. I just set it up on my mac, and have to use sudo to run it because the DB in is the root folder. I’m wondering if this has anything to do with the problem when running node seed. npm run only-once worked to set it up, but maybe node seed had some permission problems? I’ll let you guys know. Thanks again!

I think your suspicion is probably right. Try this: https://gist.github.com/adamgibbons/cc7b263ab3d52924d83b

Had the same problem when installing this on my machine with Ubuntu 17.10.

Ran “npm run only-once” then “node seed/” to fix my problem.