Closed ollieh closed 8 years ago
Hmm, that's weird because I was able to generate a working expression for that package. I just pushed it up, so you could try pulling the latest master on nix-node-packages
.
It's also weird that in the output you pasted it says "building path(s) ‘/nix/store/3i8mf33qzz551bb37yfdvnz1zfcbrxdq--as-promised-5.3.0-nodejs-4.3.1’". Why is chai
missing from that path? Anyway, hopefully what I just pushed will work for you.
One thing is that the version of chai that the chai-as-promised
that I built is using is 3.4.1 instead of 3.5.0, so that might be why.
EDIT: no, that still worked. :confused: Oh well. Give it a shot.
Still broken for me, although it's not missing out chai
from the path anymore. I removed chai and chai-as-promised from my package.json devDependencies and regenerated the nix files, just to see how far I could get without them, and ran into a similar issue again:
building path(s) ‘/nix/store/qixvwzfpm9sa87myq7ycl67ipcgnqgdn-grunt-express-server-0.5.3-nodejs-4.3.1’
setVariables
unpacking sources
unpacking source archive /nix/store/5xpwpk3kiskm4hs5h8s8893h60ysn4c7-grunt-express-server-0.5.3.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1461251726 of file package/README.md
patching sources
configuring
'node_modules/grunt' -> '/nix/store/gk3mksjc7nr62phsdmh9fn6wj5b5q8sm-grunt-1.0.1-nodejs-4.3.1/lib/node_modules/grunt'
Symlinking /nix/store/gk3mksjc7nr62phsdmh9fn6wj5b5q8sm-grunt-1.0.1-nodejs-4.3.1/bin/grunt binary to node_modules/.bin
building
npm install --registry=http://notaregistry.24ed4fbd11-grunt-express-server-0.5.3.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources --production
Installation of grunt-express-server@0.5.3 failed!
Checking dependencies to see if any aren't satisfied...
Checking dependencies
Checking peerDependencies
Checking dependency grunt@>=0.4.0(from peerDependencies)...OK
Dependencies seem ok. Rerunning with verbose logging:
npm info it worked if it ends with ok
npm verb cli [ '/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/node',
npm verb cli '/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/npm',
npm verb cli 'install',
npm verb cli '.',
npm verb cli '--registry=http://notaregistry.24ed4fbd11-grunt-express-server-0.5.3.com',
npm verb cli '--fetch-retry-mintimeout=0',
npm verb cli '--fetch-retry-maxtimeout=10',
npm verb cli '--fetch-retries=0',
npm verb cli '--userconfig=/dev/null',
npm verb cli '--nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources',
npm verb cli '--production',
npm verb cli '--loglevel=verbose' ]
npm info using npm@2.14.12
npm info using node@v4.3.1
npm verb config Skipping project config: /tmp/nix-build-grunt-express-server-0.5.3-nodejs-4.3.1.drv-0/package/.npmrc. (matches userconfig)
npm verb readDependencies loading dependencies from /tmp/nix-build-grunt-express-server-0.5.3-nodejs-4.3.1.drv-0/package/package.json
npm verb install where, deps [ '/tmp/nix-build-grunt-express-server-0.5.3-nodejs-4.3.1.drv-0/package',
npm verb install [] ]
npm verb stack TypeError: Cannot read property 'grunt' of undefined
npm verb stack at /nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:180:33
npm verb stack at Array.forEach (native)
npm verb stack at /nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:179:50
npm verb stack at ReadFileContext.<anonymous> (/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:368:22)
npm verb stack at ReadFileContext.callback (/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:76:16)
npm verb stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
npm verb cwd /tmp/nix-build-grunt-express-server-0.5.3-nodejs-4.3.1.drv-0/package
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/node" "/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/npm" "install" "." "--registry=http://notaregistry.24ed4fbd11-grunt-express-server-0.5.3.com" "--fetch-retry-mintimeout=0" "--fetch-retry-maxtimeout=10" "--fetch-retries=0" "--userconfig=/dev/null" "--nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources" "--production" "--loglevel=verbose"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! Cannot read property 'grunt' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/nix-build-grunt-express-server-0.5.3-nodejs-4.3.1.drv-0/package/npm-debug.log
builder for ‘/nix/store/l0d6413vf78ffwn6d24clh9q311adgii-grunt-express-server-0.5.3-nodejs-4.3.1.drv’ failed with exit code 1
error: build of ‘/nix/store/l0d6413vf78ffwn6d24clh9q311adgii-grunt-express-server-0.5.3-nodejs-4.3.1.drv’ failed
/home/username/.nix-profile/bin/nix-shell: failed to build all dependencies
And here is what I get now when I have chai and chai-as-promised as devDependencies:
building path(s) ‘/nix/store/3i8mf33qzz551bb37yfdvnz1zfcbrxdq-chai-as-promised-5.3.0-nodejs-4.3.1’
setVariables
unpacking sources
unpacking source archive /nix/store/xv6r7pnwiwnzvq6n14ybdfnphmj8af5k-chai-as-promised-5.3.0.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1458514247 of file package/package.json
patching sources
configuring
'node_modules/chai' -> '/nix/store/p5hr8p6b45dxiwd89bg6had5fvkpy797-chai-3.5.0-nodejs-4.3.1/lib/node_modules/chai'
building
npm install --registry=http://notaregistry.9cb6b2aead-chai-as-promised-5.3.0.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources --production
Installation of chai-as-promised@5.3.0 failed!
Checking dependencies to see if any aren't satisfied...
Checking dependencies
Checking peerDependencies
Checking dependency chai@>= 2.1.2 < 4(from peerDependencies)...OK
Dependencies seem ok. Rerunning with verbose logging:
npm info it worked if it ends with ok
npm verb cli [ '/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/node',
npm verb cli '/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/npm',
npm verb cli 'install',
npm verb cli '.',
npm verb cli '--registry=http://notaregistry.9cb6b2aead-chai-as-promised-5.3.0.com',
npm verb cli '--fetch-retry-mintimeout=0',
npm verb cli '--fetch-retry-maxtimeout=10',
npm verb cli '--fetch-retries=0',
npm verb cli '--userconfig=/dev/null',
npm verb cli '--nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources',
npm verb cli '--production',
npm verb cli '--loglevel=verbose' ]
npm info using npm@2.14.12
npm info using node@v4.3.1
npm verb config Skipping project config: /tmp/nix-build-chai-as-promised-5.3.0-nodejs-4.3.1.drv-0/package/.npmrc. (matches userconfig)
npm verb readDependencies loading dependencies from /tmp/nix-build-chai-as-promised-5.3.0-nodejs-4.3.1.drv-0/package/package.json
npm verb install where, deps [ '/tmp/nix-build-chai-as-promised-5.3.0-nodejs-4.3.1.drv-0/package',
npm verb install [] ]
npm verb stack TypeError: Cannot read property 'chai' of undefined
npm verb stack at /nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:180:33
npm verb stack at Array.forEach (native)
npm verb stack at /nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:179:50
npm verb stack at ReadFileContext.<anonymous> (/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/lib/install.js:368:22)
npm verb stack at ReadFileContext.callback (/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:76:16)
npm verb stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
npm verb cwd /tmp/nix-build-chai-as-promised-5.3.0-nodejs-4.3.1.drv-0/package
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/node" "/nix/store/vpb5b3j0yj1ikmn1di9yrl2sax3czb43-nodejs-4.3.1/bin/npm" "install" "." "--registry=http://notaregistry.9cb6b2aead-chai-as-promised-5.3.0.com" "--fetch-retry-mintimeout=0" "--fetch-retry-maxtimeout=10" "--fetch-retries=0" "--userconfig=/dev/null" "--nodedir=/nix/store/zr638czrda6q1ws3nmr1nfm7vmm775k6-node-sources" "--production" "--loglevel=verbose"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! Cannot read property 'chai' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/nix-build-chai-as-promised-5.3.0-nodejs-4.3.1.drv-0/package/npm-debug.log
builder for ‘/nix/store/5qiqmnfzp2bryfdhld519ravsy3kqgjl-chai-as-promised-5.3.0-nodejs-4.3.1.drv’ failed with exit code 1
error: build of ‘/nix/store/5qiqmnfzp2bryfdhld519ravsy3kqgjl-chai-as-promised-5.3.0-nodejs-4.3.1.drv’ failed
/home/username/.nix-profile/bin/nix-shell: failed to build all dependencies
I'm wondering if it could be a node version thing, we're using 6, so I'm going to try changing the default.nix to use newer versions.
Tried with nodejs-5_x and got this:
building path(s) ‘/nix/store/jq9jdr0fvp2s22gxk70xp67y027na5qa-phantomjs-prebuilt-2.1.7-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/znm5w80crzszh9ihpwhpbjhqzs38p7if-phantomjs-prebuilt-2.1.7.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1458942338 of file package/package.json
patching sources
configuring
'node_modules/extract-zip' -> '/nix/store/9r4ss9m3lw1kdn67qjwk2lir0rywywbm-extract-zip-1.5.0-nodejs-5.9.0/lib/node_modules/extract-zip'
Symlinking /nix/store/9r4ss9m3lw1kdn67qjwk2lir0rywywbm-extract-zip-1.5.0-nodejs-5.9.0/bin/extract-zip binary to node_modules/.bin
'node_modules/fs-extra' -> '/nix/store/7m16yqd243i17vd2l83x59lhrrr5fg9b-fs-extra-0.26.7-nodejs-5.9.0/lib/node_modules/fs-extra'
'node_modules/hasha' -> '/nix/store/rjkpvzxl7x4wjp8kn549ifmvxj24zfhk-hasha-2.2.0-nodejs-5.9.0/lib/node_modules/hasha'
'node_modules/kew' -> '/nix/store/3zd65wbwqjji618k2vq580q6300i4n3g-kew-0.7.0-nodejs-5.9.0/lib/node_modules/kew'
'node_modules/progress' -> '/nix/store/mfm1cfwm0q8rjkwlb4s1gwa79m6i7cvv-progress-1.1.8-nodejs-5.9.0/lib/node_modules/progress'
'node_modules/request' -> '/nix/store/3a9ha5m0p1qvrx2glvq80xfv1kcf6c7n-request-2.67.0-nodejs-5.9.0/lib/node_modules/request'
'node_modules/request-progress' -> '/nix/store/bi6nk6jsmk2d2msmsp3rb19h5gyb449h-request-progress-2.0.1-nodejs-5.9.0/lib/node_modules/request-progress'
'node_modules/which' -> '/nix/store/7iln5i5mpdm6srbhfgzj8kdazaavqk6b-which-1.2.4-nodejs-5.9.0/lib/node_modules/which'
Symlinking /nix/store/7iln5i5mpdm6srbhfgzj8kdazaavqk6b-which-1.2.4-nodejs-5.9.0/bin/which binary to node_modules/.bin
building
npm install --registry=http://notaregistry.5c5d60c961-phantomjs-prebuilt-2.1.7.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
Installation of phantomjs-prebuilt@2.1.7 failed!
Checking dependencies to see if any aren't satisfied...
Checking dependencies
Checking dependency extract-zip@~1.5.0(from dependencies)...OK
Checking dependency fs-extra@~0.26.4(from dependencies)...OK
Checking dependency hasha@^2.2.0(from dependencies)...OK
Checking dependency kew@~0.7.0(from dependencies)...OK
Checking dependency progress@~1.1.8(from dependencies)...OK
Checking dependency request@~2.67.0(from dependencies)...OK
Checking dependency request-progress@~2.0.1(from dependencies)...OK
Checking dependency which@~1.2.2(from dependencies)...OK
Checking peerDependencies
Dependencies seem ok. Rerunning with verbose logging:
npm info it worked if it ends with ok
npm verb cli [ '/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/node',
npm verb cli '/nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/bin/npm',
npm verb cli 'install',
npm verb cli '.',
npm verb cli '--registry=http://notaregistry.5c5d60c961-phantomjs-prebuilt-2.1.7.com',
npm verb cli '--fetch-retry-mintimeout=0',
npm verb cli '--fetch-retry-maxtimeout=10',
npm verb cli '--fetch-retries=0',
npm verb cli '--userconfig=/dev/null',
npm verb cli '--nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources',
npm verb cli '--production',
npm verb cli '--loglevel=verbose' ]
npm info using npm@3.6.0
npm info using node@v5.9.0
npm verb config Skipping project config: /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npmrc. (matches userconfig)
npm verb correctMkdir /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks/staging-5374e8c12392af1d.lock for /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.staging
npm verb unlock done using /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks/staging-5374e8c12392af1d.lock for /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.staging
npm info lifecycle phantomjs-prebuilt@2.1.7~preinstall: phantomjs-prebuilt@2.1.7
npm info linkStuff phantomjs-prebuilt@2.1.7
npm verb linkBins phantomjs-prebuilt@2.1.7
npm verb linkMans phantomjs-prebuilt@2.1.7
npm info lifecycle phantomjs-prebuilt@2.1.7~install: phantomjs-prebuilt@2.1.7
> phantomjs-prebuilt@2.1.7 install /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
Error making request.
Error: connect ECONNREFUSED 192.30.253.112:443
at Object.exports._errnoException (util.js:890:11)
at exports._exceptionWithHostPort (util.js:913:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1065:14)
Please report this full log at https://github.com/Medium/phantomjs
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: unsafe-perm in lifecycle true
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: PATH: /nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/lib/node_modules/npm/bin/node-gyp-bin:/tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.bin:/nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/bin:/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin:/nix/store/77nc4rxgrpq4s7xfivlmyf5q2iq7pqs4-tree-1.7.0/bin:/nix/store/34sscviv2lpz6vr308gg99rdc2hbhlis-python-2.7.11/bin:/nix/store/fczkvbc923d59bjxb90ivzwjpzqc9azr-util-linux-2.27.1/bin:/nix/store/9srabrkss2srkghmss1cq2wcwpp4d3nk-patchelf-0.9/bin:/nix/store/z2i4zh64b1ki9zxis5zgf7adddw8pad3-paxctl-0.9/bin:/nix/store/m0pbxxvs7zz4ixk4sxyq9shwazpd3kwq-gcc-wrapper-5.3.0/bin:/nix/store/bxzwd8nb1jjdh9fcqpii4x7r4gl2s8qb-binutils-2.26/bin:/nix/store/c7ipds48nb7sfzhb7vqp26rrllirxwxv-gcc-5.3.0/bin:/nix/store/gwl3ppqj4i730nhd4f50ncl5jc4n97ks-glibc-2.23/bin:/nix/store/w8vzn0lsahbd9sfh0v30x65qwq6xrpa8-coreutils-8.25/bin:/nix/store/9r4ss9m3lw1kdn67qjwk2lir0rywywbm-extract-zip-1.5.0-nodejs-5.9.0/bin:/nix/store/c59yrs2xr9zphxzs74ync6d0i1sbyq4g-mkdirp-0.5.0-nodejs-5.9.0/bin:/nix/store/s74j4lycmxww8vq2ypk93wzmvhm7540x-rimraf-2.5.1-nodejs-5.9.0/bin:/nix/store/zkcqxy3xz46vc6zqxakma26lffy3ykav-har-validator-2.0.6-nodejs-5.9.0/bin:/nix/store/6hxgski30r87phl1dy5ff0vgbgidh9wy-node-uuid-1.4.7-nodejs-5.9.0/bin:/nix/store/7iln5i5mpdm6srbhfgzj8kdazaavqk6b-which-1.2.4-nodejs-5.9.0/bin:/nix/store/w8vzn0lsahbd9sfh0v30x65qwq6xrpa8-coreutils-8.25/bin:/nix/store/l65knk24c08q0lwdcf0yyh7x6l5shhqj-findutils-4.4.2/bin:/nix/store/0c80aywsq3kxifpp10mgm4a4rn7dkny1-diffutils-3.3/bin:/nix/store/25lv2pv9c6nlzcxhh4kcln406rnh991q-gnused-4.2.2/bin:/nix/store/dp6c8mcsashywfkppdzic3l1qz4n9paq-gnugrep-2.22/bin:/nix/store/raza8n6f2d65njscffjaj2sgm3j0s5ys-gawk-4.1.3/bin:/nix/store/j0iqb8qz273xw7xynlx25s0zbr7y2853-gnutar-1.28/bin:/nix/store/78i3ia55aq3hbb5gjyz7mmarnb8q1xkk-gzip-1.6/bin:/nix/store/rm9fycfaprdr0zmkssmb5rg1g59w82lp-bzip2-1.0.6/bin:/nix/store/x6x1fl9qz7ss4f3l6csxvgryyvh5gz1z-gnumake-4.1/bin:/nix/store/i7hx6w6zy3bv53f2xm1r23ya8qbzn4is-bash-4.3-p42/bin:/nix/store/89pbrd7mgdd7dz7a0f85qb5l4i6hb8nf-patch-2.7.5/bin:/nix/store/6w0wrgc9yvzk0lncc6wxpdixdmqspp3f-xz-5.2.2/bin
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: CWD: /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
npm info lifecycle phantomjs-prebuilt@2.1.7~install: Failed to exec install script
npm verb stack Error: phantomjs-prebuilt@2.1.7 install: `node install.js`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
npm verb stack at emitTwo (events.js:100:13)
npm verb stack at EventEmitter.emit (events.js:185:7)
npm verb stack at ChildProcess.<anonymous> (/nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb stack at emitTwo (events.js:100:13)
npm verb stack at ChildProcess.emit (events.js:185:7)
npm verb stack at maybeClose (internal/child_process.js:850:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
npm verb pkgid phantomjs-prebuilt@2.1.7
npm verb cwd /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/node" "/nix/store/5x6s4j6mv9mr2mjlfjny6jd117b18g1z-npm-3.6.0-nodejs-5.9.0/bin/npm" "install" "." "--registry=http://notaregistry.5c5d60c961-phantomjs-prebuilt-2.1.7.com" "--fetch-retry-mintimeout=0" "--fetch-retry-maxtimeout=10" "--fetch-retries=0" "--userconfig=/dev/null" "--nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources" "--production" "--loglevel=verbose"
npm ERR! node v5.9.0
npm ERR! npm v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! phantomjs-prebuilt@2.1.7 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.7 install script 'node install.js'.
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 phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/npm-debug.log
builder for ‘/nix/store/y8xs5xpcqnpisanp33mr65qip5k9mhjy-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv’ failed with exit code 1
error: build of ‘/nix/store/y8xs5xpcqnpisanp33mr65qip5k9mhjy-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv’ failed
/home/username/.nix-profile/bin/nix-shell: failed to build all dependencies
I've never tried using node v5, so I can't really vouch for the likelihood of it working. It looks like the phantomjs error involves it attempting to download it from github, though, which is troubling:
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-linux-x86_64.tar.bz2
I seem to recall a similar situation with phantomjs that I had to patch manually to get it to work...
Ah, I found it. You might want to try applying a similar patch to what I did here with v1.9.20 (or use that):
https://github.com/adnelson/nix-node-packages/blob/master/nodePackages/phantomjs/1.9.20.nix
Also could you tell me your OS and what commit you're using for your nixpkgs? That way I can get pretty close to an exact copy of whatever you're building.
If you're using nixpkgs via a channel, you can find the commit with
$ ls -l ~/.nix-defexpr/channels/nixpkgs
lrwxr-xr-x 1 anelson wheel 81 Dec 31 1969 /Users/anelson/.nix-defexpr/channels/nixpkgs -> /nix/store/df32k3w1njzsv0q1fs31is5q9cjw1zyl-nixpkgs-16.09pre86919.52896c8/nixpkgs
The last 7 characters in 16.09pre86919.52896c8
are the commit hash (52896c8 in this case).
/nix/store/iqk9bxh3w7aadqbmm3gjp77q4mnvg1ri-nixpkgs-16.03.1111.f231b2b/nixpkgs
f231b2b
and I'm using ubuntu 16.04 64 bit.
I'll give the phantom thing a try!
alright cool, I'll see if I can reproduce your error.
Similar build error unfortunately:
building path(s) ‘/nix/store/frbi6id061pn5mxagm0yfmb117b3xqkm-karma-coverage-1.0.0-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/12ic3bs5x7w5cwlqkf2w4dblm1n99clb-karma-coverage-1.0.0.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1462328634 of file package/package.json
patching sources
configuring
'node_modules/dateformat' -> '/nix/store/r16zsbgbyfm87gyanpwkbgb1dc9874ps-dateformat-1.0.12-nodejs-5.9.0/lib/node_modules/dateformat'
Symlinking /nix/store/r16zsbgbyfm87gyanpwkbgb1dc9874ps-dateformat-1.0.12-nodejs-5.9.0/bin/dateformat binary to node_modules/.bin
'node_modules/istanbul' -> '/nix/store/kad8yvbpa7f387ri5n8rwk2bjpd9rs6i-istanbul-0.4.2-nodejs-5.9.0/lib/node_modules/istanbul'
Symlinking /nix/store/kad8yvbpa7f387ri5n8rwk2bjpd9rs6i-istanbul-0.4.2-nodejs-5.9.0/bin/istanbul binary to node_modules/.bin
'node_modules/minimatch' -> '/nix/store/cln1r0vis2slhh4nrikd4j9n61xwkvaa-minimatch-3.0.0-nodejs-5.9.0/lib/node_modules/minimatch'
'node_modules/source-map' -> '/nix/store/85dhmjc20k7q4c0f857mv6whsb3352gr-source-map-0.5.6-nodejs-5.9.0/lib/node_modules/source-map'
building
npm install --registry=http://notaregistry.7fd1bb6d3d-karma-coverage-1.0.0.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
installing
post-installation fixup
gzipping man pages in /nix/store/frbi6id061pn5mxagm0yfmb117b3xqkm-karma-coverage-1.0.0-nodejs-5.9.0
patching script interpreter paths in /nix/store/frbi6id061pn5mxagm0yfmb117b3xqkm-karma-coverage-1.0.0-nodejs-5.9.0
fetching path ‘/nix/store/vz2gbb1hs557m4b9axvpnhynlcdqs65w-expat-2.2.0’...
*** Downloading ‘https://cache.nixos.org/nar/03ffpnlpir3ll1inyym4pl3042vc1sakbgvf6nncfpmzznbhfdpn.nar.xz’ to ‘/nix/store/vz2gbb1hs557m4b9axvpnhynlcdqs65w-expat-2.2.0’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 79096 100 79096 0 0 98529 0 --:--:-- --:--:-- --:--:-- 98500
fetching path ‘/nix/store/nip8z0ayhmsmni7hnd75qy6vl84j8zxq-font-bh-ttf-1.0.3’...
*** Downloading ‘https://cache.nixos.org/nar/0xd4bm8k7wa7sv1mv7f3y9cq326f7hc46yj6vx8g4gfy5lz46q6z.nar.xz’ to ‘/nix/store/nip8z0ayhmsmni7hnd75qy6vl84j8zxq-font-bh-ttf-1.0.3’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 267k 100 267k 0 0 227k 0 0:00:01 0:00:01 --:--:-- 227k
fetching path ‘/nix/store/v7irzcbq9r5slkakjlns41qd0v71890i-libpng-apng-1.6.21’...
*** Downloading ‘https://cache.nixos.org/nar/0jjvg8v239bpy2xi5g6pkzv405ndifybbyzdgflix3sq0w8lcnsm.nar.xz’ to ‘/nix/store/v7irzcbq9r5slkakjlns41qd0v71890i-libpng-apng-1.6.21’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 230k 100 230k 0 0 262k 0 --:--:-- --:--:-- --:--:-- 263k
fetching path ‘/nix/store/x89bifq8fgq5plpw572r4w3y2fc7sifg-zlib-browserify-0.0.3.tgz’...
*** Downloading ‘https://cache.nixos.org/nar/0q91s244k3wk00a928i9abyyxx4phikjjj2y6bhv4gza3ch97lqi.nar.xz’ to ‘/nix/store/x89bifq8fgq5plpw572r4w3y2fc7sifg-zlib-browserify-0.0.3.tgz’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12684 100 12684 0 0 27168 0 --:--:-- --:--:-- --:--:-- 27218
fetching path ‘/nix/store/8s4shyl9vabkijc45zgqi2pa39abq80y-freetype-2.6.2’...
*** Downloading ‘https://cache.nixos.org/nar/03vknpaxfw3xsbj0p3cjjs28cmvwxli0y1z250c6gljrpwpvji0f.nar.xz’ to ‘/nix/store/8s4shyl9vabkijc45zgqi2pa39abq80y-freetype-2.6.2’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 494k 100 494k 0 0 400k 0 0:00:01 0:00:01 --:--:-- 400k
building path(s) ‘/nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/bbj9nmg2r9gixghwhbraim1ph1qq91cw-uglify-js-2.6.4.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1466591063 of file package/package.json
patching sources
configuring
'node_modules/async' -> '/nix/store/ba0psaxpaws0r6vqlc202g8q4g6nrcdq-async-0.2.10-nodejs-5.9.0/lib/node_modules/async'
'node_modules/source-map' -> '/nix/store/85dhmjc20k7q4c0f857mv6whsb3352gr-source-map-0.5.6-nodejs-5.9.0/lib/node_modules/source-map'
'node_modules/uglify-to-browserify' -> '/nix/store/1rkxbkl25qi48r178plipm357l3677nj-uglify-to-browserify-1.0.2-nodejs-5.9.0/lib/node_modules/uglify-to-browserify'
'node_modules/yargs' -> '/nix/store/rr8gmgbr9w8g9r9283b077f1xlw0nhba-yargs-3.10.0-nodejs-5.9.0/lib/node_modules/yargs'
building
npm install --registry=http://notaregistry.1fc519a6bf-uglify-js-2.6.4.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
installing
Creating binaries in /nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0/bin
Linking binary uglifyjs to /nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0/lib/node_modules/uglify-js/bin/uglifyjs
post-installation fixup
gzipping man pages in /nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0
patching script interpreter paths in /nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0
fetching path ‘/nix/store/96v32b2ydyc9bm9rrsxq0hgjcxqzwb6h-fontconfig-2.11.1’...
*** Downloading ‘https://cache.nixos.org/nar/0fafzrn064ssif0hfw4m0q569h2saragg4120wbzy1rfzxi86vl5.nar.xz’ to ‘/nix/store/96v32b2ydyc9bm9rrsxq0hgjcxqzwb6h-fontconfig-2.11.1’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 137k 100 137k 0 0 138k 0 --:--:-- --:--:-- --:--:-- 138k
building path(s) ‘/nix/store/v4g7ch319m8qw4mr20kl4jkh6403lzrw-grunt-contrib-uglify-1.0.1-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/xg38s77kgk75chrxpsl7xiz00xvq98gb-grunt-contrib-uglify-1.0.1.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1458139898 of file package/README.md
patching sources
configuring
'node_modules/chalk' -> '/nix/store/ra1v50bzqzvn20rmk9vg6x6nz5c54s5a-chalk-1.1.3-nodejs-5.9.0/lib/node_modules/chalk'
'node_modules/lodash' -> '/nix/store/yylzxwxgpcs4jbxf7w5flb12m0hjhsdx-lodash-4.14.1-nodejs-5.9.0/lib/node_modules/lodash'
'node_modules/maxmin' -> '/nix/store/1x8jdv2r6z2smdkv53pz665j9ln2hnhq-maxmin-1.1.0-nodejs-5.9.0/lib/node_modules/maxmin'
'node_modules/uglify-js' -> '/nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0/lib/node_modules/uglify-js'
Symlinking /nix/store/7f4psz26sh5d4amfvrs293bdg4zfp7q6-uglify-js-2.6.4-nodejs-5.9.0/bin/uglifyjs binary to node_modules/.bin
'node_modules/uri-path' -> '/nix/store/7x38hrzqdlkaxsyycap0b7bfwhbc15zz-uri-path-1.0.0-nodejs-5.9.0/lib/node_modules/uri-path'
building
npm install --registry=http://notaregistry.fbe581c33c-grunt-contrib-uglify-1.0.1.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
installing
post-installation fixup
gzipping man pages in /nix/store/v4g7ch319m8qw4mr20kl4jkh6403lzrw-grunt-contrib-uglify-1.0.1-nodejs-5.9.0
patching script interpreter paths in /nix/store/v4g7ch319m8qw4mr20kl4jkh6403lzrw-grunt-contrib-uglify-1.0.1-nodejs-5.9.0
fetching path ‘/nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8’...
*** Downloading ‘https://cache.nixos.org/nar/1dvf0a8p5wb9ly1i9nlc2z05xspz6wp66cm8f7y2m8dv7jc4p7rd.nar.xz’ to ‘/nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.0M 100 10.0M 0 0 3098k 0 0:00:03 0:00:03 --:--:-- 3098k
building path(s) ‘/nix/store/rny9ljzsp54lpwba55six8rmqh2xpyrc-yeast-0.1.2-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/lbb37yhx0sdqzp6aswllfw37y7m3llp4-yeast-0.1.2.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1441553967 of file package/package.json
patching sources
configuring
building
npm install --registry=http://notaregistry.aa0b58c510-yeast-0.1.2.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
installing
post-installation fixup
gzipping man pages in /nix/store/rny9ljzsp54lpwba55six8rmqh2xpyrc-yeast-0.1.2-nodejs-5.9.0
patching script interpreter paths in /nix/store/rny9ljzsp54lpwba55six8rmqh2xpyrc-yeast-0.1.2-nodejs-5.9.0
building path(s) ‘/nix/store/pv3iavwscld2zxiykw4jlg53hxsrpa0s-phantomjs-prebuilt-2.1.7-nodejs-5.9.0’
setVariables
unpacking sources
unpacking source archive /nix/store/znm5w80crzszh9ihpwhpbjhqzs38p7if-phantomjs-prebuilt-2.1.7.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 1458942338 of file package/package.json
patching sources
configuring
'node_modules/extract-zip' -> '/nix/store/s7dbnxbj9i69nfh9d25cjskhj83xnxfq-extract-zip-1.5.0-nodejs-5.9.0/lib/node_modules/extract-zip'
Symlinking /nix/store/s7dbnxbj9i69nfh9d25cjskhj83xnxfq-extract-zip-1.5.0-nodejs-5.9.0/bin/extract-zip binary to node_modules/.bin
'node_modules/fs-extra' -> '/nix/store/nr8ihkclp7hgnaacnr41s8dx6yjsn5q9-fs-extra-0.26.7-nodejs-5.9.0/lib/node_modules/fs-extra'
'node_modules/hasha' -> '/nix/store/5p3r7hv1g8arkd4aa5962innxgxlpjsi-hasha-2.2.0-nodejs-5.9.0/lib/node_modules/hasha'
'node_modules/kew' -> '/nix/store/pknq4gb76gjsy3sapjzch8sbvc0v1lfz-kew-0.7.0-nodejs-5.9.0/lib/node_modules/kew'
'node_modules/progress' -> '/nix/store/m4gzlbs9mgys3acl5c7wf2h1vaqh0qwc-progress-1.1.8-nodejs-5.9.0/lib/node_modules/progress'
'node_modules/request' -> '/nix/store/q8r3b3cnznsfsm3iw0zcd45823d7w206-request-2.67.0-nodejs-5.9.0/lib/node_modules/request'
'node_modules/request-progress' -> '/nix/store/5snddkj1fp2s71fxlnbldgsi1wv28y3v-request-progress-2.0.1-nodejs-5.9.0/lib/node_modules/request-progress'
'node_modules/which' -> '/nix/store/vagcq5chh9xhgqsfk1msqqdy8klqak6v-which-1.2.4-nodejs-5.9.0/lib/node_modules/which'
Symlinking /nix/store/vagcq5chh9xhgqsfk1msqqdy8klqak6v-which-1.2.4-nodejs-5.9.0/bin/which binary to node_modules/.bin
building
npm install --registry=http://notaregistry.6b6e5c5689-phantomjs-prebuilt-2.1.7.com --fetch-retry-mintimeout=0 --fetch-retry-maxtimeout=10 --fetch-retries=0 --userconfig=/dev/null --nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources --production
Installation of phantomjs-prebuilt@2.1.7 failed!
Checking dependencies to see if any aren't satisfied...
Checking dependencies
Checking dependency extract-zip@~1.5.0(from dependencies)...OK
Checking dependency fs-extra@~0.26.4(from dependencies)...OK
Checking dependency hasha@^2.2.0(from dependencies)...OK
Checking dependency kew@~0.7.0(from dependencies)...OK
Checking dependency progress@~1.1.8(from dependencies)...OK
Checking dependency request@~2.67.0(from dependencies)...OK
Checking dependency request-progress@~2.0.1(from dependencies)...OK
Checking dependency which@~1.2.2(from dependencies)...OK
Checking peerDependencies
Dependencies seem ok. Rerunning with verbose logging:
npm info it worked if it ends with ok
npm verb cli [ '/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/node',
npm verb cli '/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/npm',
npm verb cli 'install',
npm verb cli '.',
npm verb cli '--registry=http://notaregistry.6b6e5c5689-phantomjs-prebuilt-2.1.7.com',
npm verb cli '--fetch-retry-mintimeout=0',
npm verb cli '--fetch-retry-maxtimeout=10',
npm verb cli '--fetch-retries=0',
npm verb cli '--userconfig=/dev/null',
npm verb cli '--nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources',
npm verb cli '--production',
npm verb cli '--loglevel=verbose' ]
npm info using npm@3.7.3
npm info using node@v5.9.0
npm verb config Skipping project config: /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npmrc. (matches userconfig)
npm verb correctMkdir /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks/staging-5374e8c12392af1d.lock for /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.staging
npm verb unlock done using /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/.npm/_locks/staging-5374e8c12392af1d.lock for /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.staging
npm info lifecycle phantomjs-prebuilt@2.1.7~preinstall: phantomjs-prebuilt@2.1.7
npm info linkStuff phantomjs-prebuilt@2.1.7
npm verb linkBins phantomjs-prebuilt@2.1.7
npm verb linkMans phantomjs-prebuilt@2.1.7
npm info lifecycle phantomjs-prebuilt@2.1.7~install: phantomjs-prebuilt@2.1.7
> phantomjs-prebuilt@2.1.7 install /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
> node install.js
Considering PhantomJS found at /nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8/bin/phantomjs
Found PhantomJS at /nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8/bin/phantomjs ...verifying
PhantomJS detected, but wrong version 1.9.8 @ /nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8/bin/phantomjs.
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
Error making request.
Error: connect ECONNREFUSED 192.30.253.112:443
at Object.exports._errnoException (util.js:890:11)
at exports._exceptionWithHostPort (util.js:913:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1065:14)
Please report this full log at https://github.com/Medium/phantomjs
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: unsafe-perm in lifecycle true
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: PATH: /nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/lib/node_modules/npm/bin/node-gyp-bin:/tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/node_modules/.bin:/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin:/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin:/nix/store/34sscviv2lpz6vr308gg99rdc2hbhlis-python-2.7.11/bin:/nix/store/fczkvbc923d59bjxb90ivzwjpzqc9azr-util-linux-2.27.1/bin:/nix/store/9srabrkss2srkghmss1cq2wcwpp4d3nk-patchelf-0.9/bin:/nix/store/z2i4zh64b1ki9zxis5zgf7adddw8pad3-paxctl-0.9/bin:/nix/store/m0pbxxvs7zz4ixk4sxyq9shwazpd3kwq-gcc-wrapper-5.3.0/bin:/nix/store/bxzwd8nb1jjdh9fcqpii4x7r4gl2s8qb-binutils-2.26/bin:/nix/store/c7ipds48nb7sfzhb7vqp26rrllirxwxv-gcc-5.3.0/bin:/nix/store/gwl3ppqj4i730nhd4f50ncl5jc4n97ks-glibc-2.23/bin:/nix/store/w8vzn0lsahbd9sfh0v30x65qwq6xrpa8-coreutils-8.25/bin:/nix/store/gifnmmzdp8hvz9bfsmagsjbndkaf2250-phantomjs-1.9.8/bin:/nix/store/s7dbnxbj9i69nfh9d25cjskhj83xnxfq-extract-zip-1.5.0-nodejs-5.9.0/bin:/nix/store/77nc4rxgrpq4s7xfivlmyf5q2iq7pqs4-tree-1.7.0/bin:/nix/store/j16sv2xy42v67sc55ggrdck9m64yprx3-mkdirp-0.5.0-nodejs-5.9.0/bin:/nix/store/aj3g4sazw7jdpwbnjqf0n17h0xkdc6il-rimraf-2.5.1-nodejs-5.9.0/bin:/nix/store/kf5hwfm5xx30v0wkmhacagv9bzi97s6a-har-validator-2.0.6-nodejs-5.9.0/bin:/nix/store/9548d0rr6692xc6x3dms6dm00fdf6shp-node-uuid-1.4.7-nodejs-5.9.0/bin:/nix/store/vagcq5chh9xhgqsfk1msqqdy8klqak6v-which-1.2.4-nodejs-5.9.0/bin:/nix/store/w8vzn0lsahbd9sfh0v30x65qwq6xrpa8-coreutils-8.25/bin:/nix/store/l65knk24c08q0lwdcf0yyh7x6l5shhqj-findutils-4.4.2/bin:/nix/store/0c80aywsq3kxifpp10mgm4a4rn7dkny1-diffutils-3.3/bin:/nix/store/25lv2pv9c6nlzcxhh4kcln406rnh991q-gnused-4.2.2/bin:/nix/store/dp6c8mcsashywfkppdzic3l1qz4n9paq-gnugrep-2.22/bin:/nix/store/raza8n6f2d65njscffjaj2sgm3j0s5ys-gawk-4.1.3/bin:/nix/store/j0iqb8qz273xw7xynlx25s0zbr7y2853-gnutar-1.28/bin:/nix/store/78i3ia55aq3hbb5gjyz7mmarnb8q1xkk-gzip-1.6/bin:/nix/store/rm9fycfaprdr0zmkssmb5rg1g59w82lp-bzip2-1.0.6/bin:/nix/store/x6x1fl9qz7ss4f3l6csxvgryyvh5gz1z-gnumake-4.1/bin:/nix/store/i7hx6w6zy3bv53f2xm1r23ya8qbzn4is-bash-4.3-p42/bin:/nix/store/89pbrd7mgdd7dz7a0f85qb5l4i6hb8nf-patch-2.7.5/bin:/nix/store/6w0wrgc9yvzk0lncc6wxpdixdmqspp3f-xz-5.2.2/bin
npm verb lifecycle phantomjs-prebuilt@2.1.7~install: CWD: /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
npm info lifecycle phantomjs-prebuilt@2.1.7~install: Failed to exec install script
npm verb stack Error: phantomjs-prebuilt@2.1.7 install: `node install.js`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
npm verb stack at emitTwo (events.js:100:13)
npm verb stack at EventEmitter.emit (events.js:185:7)
npm verb stack at ChildProcess.<anonymous> (/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb stack at emitTwo (events.js:100:13)
npm verb stack at ChildProcess.emit (events.js:185:7)
npm verb stack at maybeClose (internal/child_process.js:850:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
npm verb pkgid phantomjs-prebuilt@2.1.7
npm verb cwd /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/node" "/nix/store/gwss6x9dgq01d84kqhlmr0ma9wcw2w52-nodejs-5.9.0/bin/npm" "install" "." "--registry=http://notaregistry.6b6e5c5689-phantomjs-prebuilt-2.1.7.com" "--fetch-retry-mintimeout=0" "--fetch-retry-maxtimeout=10" "--fetch-retries=0" "--userconfig=/dev/null" "--nodedir=/nix/store/qak0amqrgs8a825pqr90b3kc63gsnwsf-node-sources" "--production" "--loglevel=verbose"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! phantomjs-prebuilt@2.1.7 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.7 install script 'node install.js'.
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 phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/nix-build-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv-0/package/npm-debug.log
builder for ‘/nix/store/pa1piyp1v9k3sh4xm2fb5zjsdqhlfbrs-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv’ failed with exit code 1
error: build of ‘/nix/store/pa1piyp1v9k3sh4xm2fb5zjsdqhlfbrs-phantomjs-prebuilt-2.1.7-nodejs-5.9.0.drv’ failed
/home/username/.nix-profile/bin/nix-shell: failed to build all dependencies
Actually it seems to be finding phantomjs but then downloading a newer version. I guess I need phantomjs 2.1.1 somehow.
Yeah that's what it looks like. I'm not sure what versions nixpkgs currently provides.
Also, it would be a little helpful if when pasting build output you filter it a bit to just include the problematic parts, because sifting through all of that to find the error message is a bit like finding a needle in a haystack 😉
On Thursday, August 4, 2016, Ollie Hunt notifications@github.com wrote:
Actually it seems to be finding phantomjs but then downloading a newer version. I guess I need phantomjs 2.1.1 somehow.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adnelson/nixfromnpm/issues/67#issuecomment-237576593, or mute the thread https://github.com/notifications/unsubscribe-auth/AE2wtybonIgT25GWONbvIW4ay0OenD-vks5qcfvvgaJpZM4Jb8Ly .
-- Allen
Sorry about that! Looks like nix doesn't provide a new enough version but it looks simple enough to update. I'll give it a go and let you know if it works.
It works!!!! It updated the nix expression for phantomjs for a locally checked out nixpkgs repo, doing NIX_PATH=nixpkgs=path/to/repo nix-shell -A env
and it dropped me into a nix-shell! One small problem: After Symlinking current directory into node modules folder...
if throws an error saying it cannot find module 'nameoftheprojectimworkingon'
(Yeah thats not the real name). Not sure if it's a problem with our code though, or perhaps to do with the src = ./.; thing? I'll let you know if it turns out to be an issue.
Thanks so so much for all the help!!
Hooray! :tada: :cake: :fireworks:
So what you're probably seeing there is a thing in the shellHook
where it symlinks all of the dependencies and the package source directory itself into a temporary directory, and then attempts to require
the package (see here). If that import fails it might mean that you need additional compilation steps (e.g. transpiling coffeescript or whatever), or that you have a syntax or other immediate error in your JS code, or something else which I can't think of. But either way it's just a warning.
The good news is I'm getting much futher in building the packages. However, I'm stuck on the following error:
chai/3.5.0.nix
chai-as-promised
Any ideas?