Open ndeeH opened 6 years ago
Same issue on Ubuntu as well.
@weird-dreams Can you try to install with the sudo npm i -g vorlon --unsafe-perm
command? It works for me :)
Same of me on Ubuntu 16.04
Thanks @Innercode for solution !
I could install it in nvm node installation even without sudo, native and n ones wouldn't work
Same here on my MacOS 10.14.3 (Mojave):
> npm i -g vorlon --unsafe-perm
npm WARN deprecated jade@1.9.2: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/Users/xx/.nvm/versions/node/v11.0.0/bin/vorlon -> /Users/xx/.nvm/versions/node/v11.0.0/lib/node_modules/vorlon/bin/vorlon
> phantomjs-prebuilt@2.1.16 install /Users/xx/.nvm/versions/node/v11.0.0/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip
Saving to /var/folders/tr/hkwh1479211gv8pxj0mcznw40000gp/T/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...
Error making request.
Error: connect ECONNREFUSED 10.4.11.76:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
Please report this full log at https://github.com/Medium/phantomjs
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
phantom.js can't be downloaded from Github.
had the same error, changed my node version to v6 lts from v12 with nvm and it worked. hope it helps :)
Which version of PhantomJS are you using? Tip: run
phantomjs --version
. v2.1.1/phantomjs-2.1.1-macosx.zipWhat steps will reproduce the problem?
Which operating system are you using? mac os x el capitan (10.11.6)
Did you use binary PhantomJS or did you compile it from source?
Please provide any additional information below.
Looks like an
npm install -g
Found PhantomJS at /usr/local/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ...verifying
Writing location.js file
Error checking path, continuing { Error: EACCES: permission denied, open '/usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/location.js'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/location.js' }
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip
Saving to /tmp/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...
[========================================] 99%
Received 16746K total.
Extracting zip contents
Removing /usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1517823958480/phantomjs-2.1.1-macosx -> /usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/phantom
Phantom installation failed { Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1517823958480/phantomjs-2.1.1-macosx' -> '/usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/phantom'
errno: -13,
code: 'EACCES',
syscall: 'link',
path: '/tmp/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1517823958480/phantomjs-2.1.1-macosx',
dest: '/usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/phantom' } Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1517823958480/phantomjs-2.1.1-macosx' -> '/usr/local/lib/node_modules/vorlon/node_modules/phantomjs-prebuilt/lib/phantom'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.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!