plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
295 stars 39 forks source link

npm install option asks for Depracated npm v8.x and even then does not work #340

Open guysoft opened 4 years ago

guysoft commented 4 years ago

Hey, The README says:

Method 2: npm

If you have Node.js installed (recommended v8.x), you can easily install Orca using npm as:

When installing nodejs v8 I get:

================================================================================
================================================================================

                              DEPRECATION WARNING                            

  Node.js 8.x LTS Carbon is no longer actively supported!

  You will not receive security or critical stability updates for this version.

  You should migrate to a supported version of Node.js as soon as possible.
  Use the installation script that corresponds to the version of Node.js you
  wish to install. e.g.

   * https://deb.nodesource.com/setup_10.x — Node.js 10 LTS "Dubnium"
   * https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium" (recommended)
   * https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium"

What version would orca work with on NodeJS?

Also, when installing I get:

$ sudo npm install -g electron@6.1.4 orca
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js
/usr/bin/orca -> /usr/lib/node_modules/orca/bin/orca.js

> electron@6.1.4 postinstall /usr/lib/node_modules/electron
> node install.js

/usr/lib/node_modules/electron/install.js:53
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@6.1.4 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@6.1.4 postinstall 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/seluser/.npm/_logs/2020-07-14T17_08_54_545Z-debug.log

I am trying to install using node because I want to use it headless in docker in an existing image I have. Appimage is causing issues because there is no fuse option, and extracting the Appimage yields scripts that break.

antoinerg commented 3 years ago

It should work with newer version of node as well. However, the installation process can be difficult so we'll be replacing Orca with the new Kaleido project (https://github.com/plotly/Kaleido) which is significantly easier to install in docker containers and is our new recommended way forward for this kind of thing :)