Error when add Kadira:flow-router-ssr

Hi guys, someone help me, i have this issue when i try add kadira for server side.

Documentos/roiiiot-mvp-f]$ meteor add kadira:flow-router-ssr
=> Errors while adding packages:

While loading package kadira:flow-router-ssr@3.13.0:
error: Command failed:
/home/uzumaki/.meteor/packages/meteor-tool/.1.9.1.1wnp6l3.3fbd++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --update-binary
evalmachine.:35
} = primordials;
^

ReferenceError: primordials is not defined
at evalmachine.:35:5
at Object.
(/home/uzumaki/.meteor/packages/kadira_flow-router-ssr/.3.13.0.xmw02.tu5pc++os+web.browser+web.cordova/npm/node_modules/fs-extra/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1177:10)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Module.require (internal/modules/cjs/loader.js:1043:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.
(/home/uzumaki/.meteor/packages/kadira_flow-router-ssr/.3.13.0.xmw02.tu5pc++os+web.browser+web.cordova/npm/node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs@1.9.16 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.16 install 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! /home/uzumaki/.npm/_logs/2020-02-27T13_08_50_885Z-debug.log
evalmachine.:35
} = primordials;
^

ReferenceError: primordials is not defined
at evalmachine.:35:5
at Object.
(/home/uzumaki/.meteor/packages/kadira_flow-router-ssr/.3.13.0.xmw02.tu5pc++os+web.browser+web.cordova/npm/node_modules/fs-extra/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1177:10)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Module.require (internal/modules/cjs/loader.js:1043:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.
(/home/uzumaki/.meteor/packages/kadira_flow-router-ssr/.3.13.0.xmw02.tu5pc++os+web.browser+web.cordova/npm/node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs@1.9.16 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.16 install 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! /home/uzumaki/.npm/_logs/2020-02-27T13_08_50_885Z-debug.log

according to the output shown, you need install phantomjs@1.9.16, does not install automatically, I recommend you use command meteor npm install phantom --save then you run again your app

1 Like

i try this, but i have the same issue.

Kadira`s version of FlowRouter is no longer mantained. You should check ostrio FlowRouter or use ReactRouter

1 Like

@fabiolo try this,

meteor add kadira:flow-router

more info visit https://atmospherejs.com/kadira/flow-router I hope it helps you

thanks for help, but i try use the VeliovGroup/flow-router our friend mentined.

Good, I hope you get what you expect :+1:

thanks, i’ll write here, if i can fix this.

I fix with his follow @pmogollon .
thanks.

1 Like