Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

npm ERR! Callback called more than once. #724

Open JasperVanDenBosch opened 6 years ago

JasperVanDenBosch commented 6 years ago

Running into this when installing on circle-ci in the pre- dependencies step.

npm install -g phantomjs-prebuilt
-\\|-|-|/\/npm ERR! Linux 3.13.0-123-generic
npm ERR! argv "/opt/circleci/nodejs/v4.2.6/bin/node" "/opt/circleci/nodejs/v4.2.6/bin/npm" "install" "-g" "phantomjs-prebuilt"
npm ERR! node v4.2.6
npm ERR! npm  v2.14.12
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
\-|-|-/opt/circleci/nodejs/v4.2.6/bin/phantomjs -> /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt/bin/phantomjs

> phantomjs-prebuilt@2.1.14 install /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt
> node install.js

Considering PhantomJS found at /opt/circleci/nodejs/v4.2.6/bin/phantomjs
Looks like an `npm install -g`
Could not link global install, skipping...
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
  [----------------------------------------] 0%
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1499868562376/phantomjs-2.1.1-linux-x86_64 -> /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
phantomjs-prebuilt@2.1.14 /opt/circleci/nodejs/v4.2.6/lib/node_modules/phantomjs-prebuilt
├── progress@1.1.8
├── kew@0.7.0
├── es6-promise@4.0.5
├── which@1.2.14 (isexe@2.0.0)
├── request-progress@2.0.1 (throttleit@1.0.0)
├── hasha@2.2.0 (is-stream@1.1.0, pinkie-promise@2.0.1)
├── fs-extra@1.0.0 (klaw@1.3.1, jsonfile@2.4.0, graceful-fs@4.1.11)
├── extract-zip@1.5.0 (debug@0.7.4, yauzl@2.4.1, mkdirp@0.5.0, concat-stream@1.5.0)
└── request@2.79.0 (aws-sign2@0.6.0, tunnel-agent@0.4.3, forever-agent@0.6.1, oauth-sign@0.8.2, is-typedarray@1.0.0, caseless@0.11.0, stringstream@0.0.5, aws4@1.6.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.1, uuid@3.1.0, qs@6.3.2, combined-stream@1.0.5, mime-types@2.1.15, tough-cookie@2.3.2, form-data@2.1.4, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6)
npm ERR! Linux 3.13.0-123-generic
npm ERR! argv "/opt/circleci/nodejs/v4.2.6/bin/node" "/opt/circleci/nodejs/v4.2.6/bin/npm" "install" "-g" "phantomjs-prebuilt"
npm ERR! node v4.2.6
npm ERR! npm  v2.14.12

npm ERR! Callback called more than once.
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ubuntu/meadows/npm-debug.log

npm install -g phantomjs-prebuilt returned exit code 1

Action failed: npm install -g phantomjs-prebuilt
n-paredes commented 6 years ago

I have the same with npm ERR! Linux 3.13.0-123-generic

`[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

wp-calypso@0.17.0 prestart /app npm run -s install-if-deps-outdated && node bin/welcome.js && ( check-node-version --package || exit 0 )

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

         _                           
___ __ _| |_   _ _ __  ___  ___      

/ / ` | | | | | ' \/ |/ \ | (| (| | | || | |) _ \ () |
_\,
||_, | ./|__/\/ |__/||

node: 6.11.1 npm: 3.10.10 yarn: not installed

wp-calypso@0.17.0 start /app npm run -s build

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] - : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

node[322]: pthread_create: Resource temporarily unavailable [..................] \ : verb config Skipping project config: /app/.npmrc. (mat Aborted [..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] - : verb config Skipping project config: /app/.npmrc. (mat Rendering Complete, saving .css file... Wrote CSS to /app/public/editor.css

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat [..................] - : verb config Skipping project config: /app/.npmrc. (mat

[..................] \ : verb config Skipping project config: /app/.npmrc. (mat [..................] / : verb config Skipping project config: /app/.npmrc. (mat

[..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c', [..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c', [..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c', [..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:index: [..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:index: [..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:proptyp [..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c',

[..................] | : sill lifecycle wp-calypso@0.17.0~build-css:editor: Arg

[..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:proptyp [..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:index: [..................] | : sill lifecycle wp-calypso@0.17.0~build-css:debug: Args [..................] | : sill lifecycle wp-calypso@0.17.0~build-devdocs:index: [..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c', [..................] | : sill lifecycle wp-calypso@0.17.0~build-css:editor: Arg [..................] | : sill lifecycle wp-calypso@0.17.0~build-server: Args: [ [..................] | : sill lifecycle wp-calypso@0.17.0~env: Args: [ '-c',

[..................] | : sill lifecycle wp-calypso@0.17.0~build-css:debug: Args [..................] | : sill lifecycle wp-calypso@0.17.0~build-server: Args: [

[..................] | : sill lifecycle wp-calypso@0.17.0~build-css: Args: [ '-

[..................] | : sill lifecycle wp-calypso@0.17.0~build-css: Args: [ '-

npm ERR! Linux 3.13.0-123-generic npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! wp-calypso@0.17.0 start: npm run -s build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the wp-calypso@0.17.0 start script 'npm run -s build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the wp-calypso package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run -s build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs wp-calypso npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls wp-calypso npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /app/npm-debug.log `