Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Package upgrade within Atom fails #304

Closed

Description

@iolsen

apm upgrade from the command line worked, but from within Atom it failed with the following output:

> node-gyp rebuild

github@0.0.0 /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-116102-73422-1320kos
+-- compare-sets@1.0.1 
+-- diff@2.2.2 
+-- etch@0.8.0 
| `-- virtual-dom@2.1.1 
|   +-- browser-split@0.0.1 
|   +-- error@4.4.0 
|   | +-- camelize@1.0.0 
|   | +-- string-template@0.2.1 
|   | `-- xtend@4.0.1 
|   +-- ev-store@7.0.0 
|   | `-- individual@3.0.0 
|   +-- global@4.3.1 
|   | +-- min-document@2.19.0 
|   | | `-- dom-walk@0.1.1 
|   | `-- process@0.5.2 
|   +-- is-object@1.0.1 
|   +-- next-tick@0.2.2 
|   +-- x-is-array@0.1.0 
|   `-- x-is-string@0.1.0 
+-- git-kitchen-sink@1.11.0 
| +-- checksum@0.1.1 
| | `-- optimist@0.3.7 
| |   `-- wordwrap@0.0.3 
| +-- decompress@4.0.0 
| | +-- decompress-tar@4.1.0 
| | | +-- file-type@3.9.0 
| | | +-- is-stream@1.1.0 
| | | `-- tar-stream@1.5.2 
| | |   +-- bl@1.1.2 
| | |   | `-- readable-stream@2.0.6 
| | |   +-- end-of-stream@1.1.0 
| | |   `-- readable-stream@2.1.5 
| | |     +-- buffer-shims@1.0.0 
| | |     +-- core-util-is@1.0.2 
| | |     +-- isarray@1.0.0 
| | |     +-- process-nextick-args@1.0.7 
| | |     +-- string_decoder@0.10.31 
| | |     `-- util-deprecate@1.0.2 
| | +-- decompress-tarbz2@4.1.0 
| | | +-- seek-bzip@1.0.5 
| | | | `-- commander@2.8.1 
| | | `-- unbzip2-stream@1.0.10 
| | |   +-- buffer@3.6.0 
| | |   | +-- base64-js@0.0.8 
| | |   | `-- ieee754@1.1.8 
| | |   `-- through@2.3.8 
| | +-- decompress-targz@4.0.0 
| | +-- decompress-unzip@4.0.1 
| | | +-- get-stream@2.3.1 
| | | | `-- object-assign@4.1.0 
| | | `-- yauzl@2.7.0 
| | |   +-- buffer-crc32@0.2.5 
| | |   `-- fd-slicer@1.0.1 
| | |     `-- pend@1.2.0 
| | +-- pify@2.3.0 
| | `-- strip-dirs@1.1.1 
| |   +-- chalk@1.1.3 
| |   | +-- ansi-styles@2.2.1 
| |   | +-- escape-string-regexp@1.0.5 
| |   | +-- has-ansi@2.0.0 
| |   | | `-- ansi-regex@2.0.0 
| |   | +-- strip-ansi@3.0.1 
| |   | `-- supports-color@2.0.0 
| |   +-- get-stdin@4.0.1 
| |   +-- is-absolute@0.1.7 
| |   | `-- is-relative@0.1.3 
| |   +-- is-natural-number@2.1.1 
| |   +-- minimist@1.2.0 
| |   `-- sum-up@1.0.3 
| +-- os-tmpdir@1.0.2 
| +-- progress@1.1.8 
| +-- request@2.76.0 
| | +-- aws-sign2@0.6.0 
| | +-- aws4@1.5.0 
| | +-- caseless@0.11.0 
| | +-- combined-stream@1.0.5 
| | | `-- delayed-stream@1.0.0 
| | +-- extend@3.0.0 
| | +-- forever-agent@0.6.1 
| | +-- form-data@2.1.1 
| | | `-- asynckit@0.4.0 
| | +-- har-validator@2.0.6 
| | | +-- commander@2.9.0 
| | | | `-- graceful-readlink@1.0.1 
| | | +-- is-my-json-valid@2.15.0 
| | | | +-- generate-function@2.0.0 
| | | | +-- generate-object-property@1.2.0 
| | | | | `-- is-property@1.0.2 
| | | | `-- jsonpointer@4.0.0 
| | | `-- pinkie-promise@2.0.1 
| | |   `-- pinkie@2.0.4 
| | +-- hawk@3.1.3 
| | | +-- boom@2.10.1 
| | | +-- cryptiles@2.0.5 
| | | +-- hoek@2.16.3 
| | | `-- sntp@1.0.9 
| | +-- http-signature@1.1.1 
| | | +-- assert-plus@0.2.0 
| | | +-- jsprim@1.3.1 
| | | | +-- extsprintf@1.0.2 
| | | | +-- json-schema@0.2.3 
| | | | `-- verror@1.3.6 
| | | `-- sshpk@1.10.1 
| | |   +-- asn1@0.2.3 
| | |   +-- assert-plus@1.0.0 
| | |   +-- bcrypt-pbkdf@1.0.0 
| | |   +-- dashdash@1.14.0 
| | |   | `-- assert-plus@1.0.0 
| | |   +-- ecc-jsbn@0.1.1 
| | |   +-- getpass@0.1.6 
| | |   | `-- assert-plus@1.0.0 
| | |   +-- jodid25519@1.0.2 
| | |   +-- jsbn@0.1.0 
| | |   `-- tweetnacl@0.14.3 
| | +-- is-typedarray@1.0.0 
| | +-- isstream@0.1.2 
| | +-- json-stringify-safe@5.0.1 
| | +-- mime-types@2.1.12 
| | | `-- mime-db@1.24.0 
| | +-- node-uuid@1.4.7 
| | +-- oauth-sign@0.8.2 
| | +-- qs@6.3.0 
| | +-- stringstream@0.0.5 
| | +-- tough-cookie@2.3.2 
| | | `-- punycode@1.4.1 
| | `-- tunnel-agent@0.4.3 
| `-- rimraf@2.5.4 
|   `-- glob@7.1.1 
|     +-- fs.realpath@1.0.0 
|     +-- inflight@1.0.6 
|     | `-- wrappy@1.0.2 
|     +-- inherits@2.0.3 
|     +-- minimatch@3.0.3 
|     +-- once@1.3.3 
|     `-- path-is-absolute@1.0.1 
+-- mkdirp@0.5.1 
| `-- minimist@0.0.8 
+-- multi-list-selection@0.1.1 
+-- recursive-readdir@2.1.0 
| `-- minimatch@3.0.2 
|   `-- brace-expansion@1.1.6 
|     +-- balanced-match@0.4.2 
|     `-- concat-map@0.0.1 
+-- temp@0.8.3 
| `-- rimraf@2.2.8 
`-- what-the-diff@0.1.1 


(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)

(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:791:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
make: *** No rule to make target `../../../../../../../../../../Applications/Atom', needed by `Makefile'.  Stop.
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 16.1.0
gyp ERR! command "/Applications/Atom Beta.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-116102-73422-1320kos/node_modules/nsfw
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm ERR! Darwin 16.1.0
npm ERR! argv "/Applications/Atom Beta.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/iolsen/.atom/.apm/.apmrc" "--userconfig" "/Users/iolsen/.atom/.apmrc" "install" "--runtime=electron" "--target=1.3.6" "--arch=x64"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! nsfw@1.0.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nsfw@1.0.12 install script 'node-gyp rebuild'.
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 nsfw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs nsfw
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls nsfw
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-116102-73422-1320kos/npm-debug.log```

Activity

  1. added this to the 3: MVP Public Release milestone on Nov 4, 2016
  2. BinaryMuse commented on Jan 10, 2017

    @BinaryMuse
    Contributor

    @iolsen are you still seeing this

  3. winstliu commented on Jan 10, 2017

    @winstliu
    Contributor

    This may have been fixed by atom/atom#13042.

  4. iolsen commented on Jan 10, 2017

    @iolsen
    Author

    Unfortunately I'm up-to-date at the moment, but I'll try it again when I can.

  5. iolsen commented on Jan 11, 2017

    @iolsen
    Author

    I'm still seeing this trying to update within 1.14.0-beta0.

    Updating to latest sha failed.Hide output…
    > nsfw@1.0.14 install /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-117011-854-11cp3bh/node_modules/nsfw
    > node-gyp rebuild
    
    github@0.0.0 /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-117011-854-11cp3bh
    +-- atom-babel6-transpiler@0.0.3 
    +-- babel-core@6.21.0 
    | +-- babel-code-frame@6.20.0 
    | | +-- chalk@1.1.3 
    | | | +-- ansi-styles@2.2.1 
    | | | +-- escape-string-regexp@1.0.5 
    | | | +-- has-ansi@2.0.0 
    | | | | `-- ansi-regex@2.0.0 
    | | | +-- strip-ansi@3.0.1 
    | | | `-- supports-color@2.0.0 
    | | +-- esutils@2.0.2 
    | | `-- js-tokens@2.0.0 
    | +-- babel-helpers@6.16.0 
    | +-- babel-messages@6.8.0 
    | +-- babel-register@6.18.0 
    | | +-- core-js@2.4.1 
    | | +-- home-or-tmp@2.0.0 
    | | | `-- os-homedir@1.0.2 
    | | `-- source-map-support@0.4.8 
    | +-- babel-runtime@6.20.0 
    | | `-- regenerator-runtime@0.10.1 
    | +-- babel-template@6.16.0 
    | +-- babel-traverse@6.21.0 
    | | +-- globals@9.14.0 
    | | `-- invariant@2.2.2 
    | +-- babel-types@6.21.0 
    | | `-- to-fast-properties@1.0.2 
    | +-- babylon@6.15.0 
    | +-- convert-source-map@1.3.0 
    | +-- debug@2.6.0 
    | | `-- ms@0.7.2 
    | +-- json5@0.5.1 
    | +-- lodash@4.17.4 
    | +-- minimatch@3.0.3 
    | | `-- brace-expansion@1.1.6 
    | |   +-- balanced-match@0.4.2 
    | |   `-- concat-map@0.0.1 
    | +-- path-is-absolute@1.0.1 
    | +-- private@0.1.6 
    | +-- slash@1.0.0 
    | `-- source-map@0.5.6 
    +-- babel-generator@6.21.0 
    | +-- detect-indent@4.0.0 
    | | `-- repeating@2.0.1 
    | |   `-- is-finite@1.0.2 
    | |     `-- number-is-nan@1.0.1 
    | `-- jsesc@1.3.0 
    +-- babel-plugin-transform-async-to-generator@6.16.0 
    | +-- babel-helper-remap-async-to-generator@6.20.3 
    | `-- babel-plugin-syntax-async-functions@6.13.0 
    +-- babel-plugin-transform-class-properties@6.19.0 
    | +-- babel-helper-function-name@6.18.0 
    | `-- babel-plugin-syntax-class-properties@6.13.0 
    +-- babel-plugin-transform-decorators-legacy@1.3.4 
    | `-- babel-plugin-syntax-decorators@6.13.0 
    +-- babel-plugin-transform-es2015-destructuring@6.19.0 
    +-- babel-plugin-transform-es2015-modules-commonjs@6.18.0 
    | `-- babel-plugin-transform-strict-mode@6.18.0 
    +-- babel-plugin-transform-es2015-parameters@6.21.0 
    | +-- babel-helper-call-delegate@6.18.0 
    | | `-- babel-helper-hoist-variables@6.18.0 
    | `-- babel-helper-get-function-arity@6.18.0 
    +-- babel-plugin-transform-object-rest-spread@6.20.2 
    | `-- babel-plugin-syntax-object-rest-spread@6.13.0 
    +-- babel-preset-react@6.16.0 
    | +-- babel-plugin-syntax-flow@6.18.0 
    | +-- babel-plugin-syntax-jsx@6.18.0 
    | +-- babel-plugin-transform-flow-strip-types@6.21.0 
    | +-- babel-plugin-transform-react-display-name@6.8.0 
    | +-- babel-plugin-transform-react-jsx@6.8.0 
    | | `-- babel-helper-builder-react-jsx@6.21.1 
    | +-- babel-plugin-transform-react-jsx-self@6.11.0 
    | `-- babel-plugin-transform-react-jsx-source@6.9.0 
    +-- compare-sets@1.0.1 
    +-- core-decorators@0.15.0 
    +-- diff@2.2.2 
    +-- etch@0.8.0 
    | `-- virtual-dom@2.1.1 
    |   +-- browser-split@0.0.1 
    |   +-- error@4.4.0 
    |   | +-- camelize@1.0.0 
    |   | +-- string-template@0.2.1 
    |   | `-- xtend@4.0.1 
    |   +-- ev-store@7.0.0 
    |   | `-- individual@3.0.0 
    |   +-- global@4.3.1 
    |   | +-- min-document@2.19.0 
    |   | | `-- dom-walk@0.1.1 
    |   | `-- process@0.5.2 
    |   +-- is-object@1.0.1 
    |   +-- next-tick@0.2.2 
    |   +-- x-is-array@0.1.0 
    |   `-- x-is-string@0.1.0 
    +-- git-kitchen-sink@1.11.0 
    | +-- checksum@0.1.1 
    | | `-- optimist@0.3.7 
    | |   `-- wordwrap@0.0.3 
    | +-- decompress@4.0.0 
    | | +-- decompress-tar@4.1.0 
    | | | +-- file-type@3.9.0 
    | | | +-- is-stream@1.1.0 
    | | | `-- tar-stream@1.5.2 
    | | |   +-- bl@1.2.0 
    | | |   +-- end-of-stream@1.1.0 
    | | |   `-- readable-stream@2.2.2 
    | | |     +-- buffer-shims@1.0.0 
    | | |     +-- core-util-is@1.0.2 
    | | |     +-- isarray@1.0.0 
    | | |     +-- process-nextick-args@1.0.7 
    | | |     +-- string_decoder@0.10.31 
    | | |     `-- util-deprecate@1.0.2 
    | | +-- decompress-tarbz2@4.1.0 
    | | | +-- seek-bzip@1.0.5 
    | | | | `-- commander@2.8.1 
    | | | `-- unbzip2-stream@1.0.10 
    | | |   +-- buffer@3.6.0 
    | | |   | +-- base64-js@0.0.8 
    | | |   | `-- ieee754@1.1.8 
    | | |   `-- through@2.3.8 
    | | +-- decompress-targz@4.0.0 
    | | +-- decompress-unzip@4.0.1 
    | | | +-- get-stream@2.3.1 
    | | | `-- yauzl@2.7.0 
    | | |   +-- buffer-crc32@0.2.13 
    | | |   `-- fd-slicer@1.0.1 
    | | |     `-- pend@1.2.0 
    | | +-- pify@2.3.0 
    | | `-- strip-dirs@1.1.1 
    | |   +-- get-stdin@4.0.1 
    | |   +-- is-absolute@0.1.7 
    | |   | `-- is-relative@0.1.3 
    | |   +-- is-natural-number@2.1.1 
    | |   +-- minimist@1.2.0 
    | |   `-- sum-up@1.0.3 
    | +-- os-tmpdir@1.0.2 
    | +-- progress@1.1.8 
    | +-- request@2.79.0 
    | | +-- aws-sign2@0.6.0 
    | | +-- aws4@1.5.0 
    | | +-- caseless@0.11.0 
    | | +-- combined-stream@1.0.5 
    | | | `-- delayed-stream@1.0.0 
    | | +-- extend@3.0.0 
    | | +-- forever-agent@0.6.1 
    | | +-- form-data@2.1.2 
    | | | `-- asynckit@0.4.0 
    | | +-- har-validator@2.0.6 
    | | | +-- commander@2.9.0 
    | | | | `-- graceful-readlink@1.0.1 
    | | | +-- is-my-json-valid@2.15.0 
    | | | | +-- generate-function@2.0.0 
    | | | | +-- generate-object-property@1.2.0 
    | | | | | `-- is-property@1.0.2 
    | | | | `-- jsonpointer@4.0.1 
    | | | `-- pinkie-promise@2.0.1 
    | | |   `-- pinkie@2.0.4 
    | | +-- hawk@3.1.3 
    | | | +-- boom@2.10.1 
    | | | +-- cryptiles@2.0.5 
    | | | +-- hoek@2.16.3 
    | | | `-- sntp@1.0.9 
    | | +-- http-signature@1.1.1 
    | | | +-- assert-plus@0.2.0 
    | | | +-- jsprim@1.3.1 
    | | | | +-- extsprintf@1.0.2 
    | | | | +-- json-schema@0.2.3 
    | | | | `-- verror@1.3.6 
    | | | `-- sshpk@1.10.1 
    | | |   +-- asn1@0.2.3 
    | | |   +-- assert-plus@1.0.0 
    | | |   +-- bcrypt-pbkdf@1.0.0 
    | | |   +-- dashdash@1.14.1 
    | | |   | `-- assert-plus@1.0.0 
    | | |   +-- ecc-jsbn@0.1.1 
    | | |   +-- getpass@0.1.6 
    | | |   | `-- assert-plus@1.0.0 
    | | |   +-- jodid25519@1.0.2 
    | | |   +-- jsbn@0.1.0 
    | | |   `-- tweetnacl@0.14.5 
    | | +-- is-typedarray@1.0.0 
    | | +-- isstream@0.1.2 
    | | +-- json-stringify-safe@5.0.1 
    | | +-- mime-types@2.1.13 
    | | | `-- mime-db@1.25.0 
    | | +-- oauth-sign@0.8.2 
    | | +-- qs@6.3.0 
    | | +-- stringstream@0.0.5 
    | | +-- tough-cookie@2.3.2 
    | | | `-- punycode@1.4.1 
    | | +-- tunnel-agent@0.4.3 
    | | `-- uuid@3.0.1 
    | `-- rimraf@2.5.4 
    |   `-- glob@7.1.1 
    |     +-- fs.realpath@1.0.0 
    |     +-- inflight@1.0.6 
    |     | `-- wrappy@1.0.2 
    |     +-- inherits@2.0.3 
    |     `-- once@1.3.3 
    +-- mkdirp@0.5.1 
    | `-- minimist@0.0.8 
    +-- multi-list-selection@0.1.1 
    +-- ncp@2.0.0 
    +-- react@15.4.2 
    | +-- fbjs@0.8.8 
    | | +-- core-js@1.2.7 
    | | +-- isomorphic-fetch@2.2.1 
    | | | +-- node-fetch@1.6.3 
    | | | | `-- encoding@0.1.12 
    | | | |   `-- iconv-lite@0.4.15 
    | | | `-- whatwg-fetch@2.0.1 
    | | +-- promise@7.1.1 
    | | | `-- asap@2.0.5 
    | | +-- setimmediate@1.0.5 
    | | `-- ua-parser-js@0.7.12 
    | +-- loose-envify@1.3.0 
    | `-- object-assign@4.1.0 
    +-- react-dom@15.4.2 
    +-- recursive-readdir@2.1.0 
    | `-- minimatch@3.0.2 
    +-- semver@5.3.0 
    +-- temp@0.8.3 
    | `-- rimraf@2.2.8 
    +-- tree-kill@1.1.0 
    `-- what-the-diff@0.2.0 
    
    
    (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
    Trace
        at TLSSocket.addListener (events.js:239:17)
        at TLSSocket.Readable.on (_stream_readable.js:673:33)
        at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
        at emitOne (events.js:77:13)
        at Request.emit (events.js:169:7)
        at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:823:10)
        at emitOne (events.js:82:20)
        at ClientRequest.emit (events.js:169:7)
        at tickOnSocket (_http_client.js:502:7)
        at onSocketNT (_http_client.js:514:5)
    (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
    Trace
        at TLSSocket.addListener (events.js:239:17)
        at TLSSocket.Readable.on (_stream_readable.js:673:33)
        at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
        at emitOne (events.js:77:13)
        at Request.emit (events.js:169:7)
    
        at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:823:10)
        at emitOne (events.js:82:20)
        at ClientRequest.emit (events.js:169:7)
        at tickOnSocket (_http_client.js:502:7)
        at onSocketNT (_http_client.js:514:5)
    (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
    Trace
        at TLSSocket.addListener (events.js:239:17)
        at TLSSocket.Readable.on (_stream_readable.js:673:33)
        at Request.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm-registry-client/lib/request.js:153:7)
        at emitOne (events.js:77:13)
        at Request.emit (events.js:169:7)
        at ClientRequest.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/request/request.js:823:10)
        at emitOne (events.js:82:20)
        at ClientRequest.emit (events.js:169:7)
        at tickOnSocket (_http_client.js:502:7)
        at onSocketNT (_http_client.js:514:5)
    make: *** No rule to make target `../../../../../../../../../../Applications/Atom', needed by `Makefile'.  Stop.
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
    gyp ERR! stack     at emitTwo (events.js:87:13)
    gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
    gyp ERR! System Darwin 16.1.0
    gyp ERR! command "/Applications/Atom Beta.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
    gyp ERR! cwd /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom-git-package-clone-117011-854-11cp3bh/node_modules/nsfw
    gyp ERR! node -v v4.4.5
    gyp ERR! node-gyp -v v3.4.0
    gyp ERR! not ok 
    npm ERR! Darwin 16.1.0
    npm ERR! argv "/Applications/Atom Beta.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/iolsen/.atom/.apm/.apmrc" "--userconfig" "/Users/iolsen/.atom/.apmrc" "install" "--runtime=electron" "--target=1.3.13" "--arch=x64"
    npm ERR! node v4.4.5
    npm ERR! npm  v3.10.5
    npm ERR! code ELIFECYCLE
    
    npm ERR! nsfw@1.0.14 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the nsfw@1.0.14 install script 'node-gyp rebuild'.
    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 nsfw package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node-gyp rebuild
    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR!     npm bugs nsfw
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls nsfw
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /private/var/folders/19/fkg_98p137bd8y8r_5b0nz1m0000gn/T/atom
    

    As before, apm update worked fine:

    iolsen:~/github/atom/atom (master=)$ apm update
    Package Updates Available (1)
    └── github dc57ad95 -> fcf47497
    
    Would you like to install these updates? (yes) 
    
    Cloning https://github.com/atom/github.git ✓
    Moving github to /Users/iolsen/.atom/packages/github ✓
    
  6. smashwilson commented on Jan 12, 2017

    @smashwilson
    Contributor

    This looks like the same thing as #427. Basically, apm-beta fails to build native extensions when there's whitespace in the path, which is always the case for beta-channel installs.

    It's already been fixed in atom/apm#666, but not released. Worth a hotfix do you think?

  7. iolsen commented on Jan 12, 2017

    @iolsen
    Author

    Unless I'm missing something, atom/apm#666 is a Windows-only fix?

    Once we do have a fix for Mac, I'm 👍 on a hotfix for beta.

  8. smashwilson commented on Jan 12, 2017

    @smashwilson
    Contributor

    @iolsen Oh you're right... @damieng's commit only touches .cmd files. I'm guessing that there's a similar fix for the bash scripts... ?

    I'll see if I can repro and correct. 🔧

  9. damieng commented on Jan 12, 2017

    @damieng
    Contributor

    Yeah sorry guys I've only been fixing the Windows areas with spaces in the name - wasn't aware we also had this issue on macOS/Linux.

  10. self-assigned this
    on Jan 13, 2017
  11. smashwilson commented on Jan 13, 2017

    @smashwilson
    Contributor

    Yeah sorry guys I've only been fixing the Windows areas with spaces in the name - wasn't aware we also had this issue on macOS/Linux.

    Turns out I was wrong about this. It's this issue (atom/apm#499), which is fundamentally a node-gyp problem (nodejs/node-gyp#65) which has been open for... four years now.

    On one hand, this won't be a one-line hotfix like I was hoping it would. On the other, this is actually breaking beta install of any Atom package that has any native dependency.

    It looks like node-gyp lets you interpose custom generators for build files (as a Python module), which means that I should be able to modify the built-in Makefile generator as a vendored file in apm and configure node-gyp to use the patched version instead. That'd let us unbreak apm-beta install without having to wait for PR to node-gyp (then a release, then a version-bump in npm...) to make its way through the pipeline.

  12. smashwilson commented on Jan 17, 2017

    @smashwilson
    Contributor

    I have a PR that fixes this now at atom/apm#673. ✨

    Just needs tests, then an upstream patch to gyp.

  13. smashwilson commented on Feb 23, 2017

    @smashwilson
    Contributor

    Fixed upstream!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions