dillinger: Error during install #phantomjs

Hi, I got an error during the install :

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/dillinger/npm-debug.log
npm ERR! not ok code 0

so here is the end of /var/www/dillinger/npm-debug.log :

99170 silly gunzTarPerm extractEntry build/test-prefix.js
99171 silly gunzTarPerm extractEntry build/test-suffix.js
99172 error phantomjs@1.9.20 install: `node install.js`
99172 error Exit status 127
99173 error Failed at the phantomjs@1.9.20 install script.
99173 error This is most likely a problem with the phantomjs package,
99173 error not with npm itself.
99173 error Tell the author that this fails on your system:
99173 error     node install.js
99173 error You can get their info via:
99173 error     npm owner ls phantomjs
99173 error There is likely additional logging output above.
99174 error System Linux 3.16.0-4-amd64
99175 error command "/usr/bin/nodejs" "/usr/bin/npm" "i" "-d"
99176 error cwd /var/www/dillinger
99177 error node -v v0.10.29

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

So the first phantomjs issue is solved. I installed apt-get install nodejs-legacy and run npm i -d again this time without error.

But now when I do NODE_ENV=production node app I get :

$ NODE_ENV=production node app
Dropbox config not found at /var/www/dillinger/plugins/dropbox/dropbox-config.json. Plugin disabled.
Github config not found at /var/www/dillinger/plugins/github/github-config.json. Plugin disabled.
Google Drive config not found at /var/www/dillinger/plugins/googledrive/googledrive-config.json. Plugin disabled.
OneDrive config not found at /var/www/dillinger/plugins/onedrive/onedrive-config.json. Plugin disabled.

/var/www/dillinger/plugins/core/server.js:92
    getPhantomSession().then(phantom => {
                                      ^
SyntaxError: Unexpected token >
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/www/dillinger/app.js:23:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

I don’t know if, this time, it comes from phantomjs or the server.js file.