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

Package installation fails(Remove PathWatcher) #2

Closed
dmsimard opened this issue Mar 31, 2014 · 24 comments
Closed

Package installation fails(Remove PathWatcher) #2

dmsimard opened this issue Mar 31, 2014 · 24 comments

Comments

@dmsimard
Copy link

Hi,

Installation doesn't seem to work from within Atom's package manager GUI:

> runas@0.5.4 install /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild


npm http GET https://registry.npmjs.org/pathwatcher
npm http 200 https://registry.npmjs.org/pathwatcher
npm http GET https://registry.npmjs.org/pathwatcher/-/pathwatcher-1.1.1.tgz
npm http 200 https://registry.npmjs.org/pathwatcher/-/pathwatcher-1.1.1.tgz
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http 200 https://registry.npmjs.org/q
npm http 200 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/q/-/q-1.0.1.tgz
npm http GET https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/runas
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http GET https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/emissary
npm http 200 https://registry.npmjs.org/q/-/q-1.0.1.tgz
npm http GET https://registry.npmjs.org/emissary/-/emissary-1.2.0.tgz
npm http 200 https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/emissary/-/emissary-1.2.0.tgz
npm http 200 https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/fs-plus/-/fs-plus-2.2.0.tgz
npm http 200 https://registry.npmjs.org/fs-plus/-/fs-plus-2.2.0.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/rimraf
npm ERR! Error: ENOENT, utime '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan/nan.h'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan/nan.h
npm ERR! fstream_path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan/nan.h
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/property-accessors
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules'
npm ERR! error rolling back  pathwatcher@1.1.1 { [Error: ENOTEMPTY, rmdir '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules' }
npm http 200 https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors/-/property-accessors-1.1.0.tgz
npm http GET https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm ERR! Error: ENOENT, utime '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js
npm ERR! fstream_path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/mkdirp/.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4

npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/mkdirp/.npmignore
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! EEXIST, mkdir '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/rimraf'
File exists: /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/rimraf
Move it away, and try again. 

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/rimraf
npm ERR! fstream_path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/fs-plus/node_modules/rimraf/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/underscore-plus/node_modules/underscore'
File exists: /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/underscore-plus/node_modules/underscore
Move it away, and try again. 

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/underscore-plus/node_modules/underscore
npm ERR! fstream_path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/underscore-plus/node_modules/underscore/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! runas@0.5.4 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the runas@0.5.4 install script.
npm ERR! This is most likely a problem with the runas 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 their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-114231-14424-2987d6/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 200 https://registry.npmjs.org/property-accessors/-/property-accessors-1.1.0.tgz
npm http 200 https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/npm-debug.log
npm ERR! not ok code 0
@dmsimard
Copy link
Author

Can't wait to try this out, I find it pretty ironic that atom doesn't have git command integration :(

@ColinPacitti
Copy link

Im getting this error aswell

@akonwi
Copy link
Owner

akonwi commented Mar 31, 2014

Sorry to hear your having install issues. From that log, it seems like the problem is with npm. Did you try removing the file it's complaining about? I'll look into this when I get back to my apartment

@ColinPacitti
Copy link

I was able to fix this by doing a manual install in the terminal

just run:
apm install git-plus

@dmsimard
Copy link
Author

@ColinPacitti getting the same errors by trying to install it in commandline.

@ColinPacitti
Copy link

@dmsimard do you have sudo access? Make sure to check the '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-114231-14424-1jdtfac/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan/nan.h' directory it's giving you a ENOENT error (no such file or directory) does this directory exist for you?

@akonwi
Copy link
Owner

akonwi commented Apr 1, 2014

@dmsimard Are you still having issues?

@dmsimard
Copy link
Author

dmsimard commented Apr 1, 2014

I flushed atom, the atom and apm binaries, the .atom directory and even the application itself.

From scratch, here's what it looks like:

~ $ apm install atom-jinja2
Installing atom-jinja2 to /Users/dmsimard/.atom/packages ✓
~ $ apm install atom-terminal
Installing atom-terminal to /Users/dmsimard/.atom/packages ✓
~ $ apm install auto-update-packages
Installing auto-update-packages to /Users/dmsimard/.atom/packages ✓
~ $ apm install command-logger
Installing command-logger to /Users/dmsimard/.atom/packages ✓
~ $ apm install editor-stats
Installing editor-stats to /Users/dmsimard/.atom/packages ✓
~ $ apm install language-puppet
Installing language-puppet to /Users/dmsimard/.atom/packages ✓
~ $ apm install language-rspec
Installing language-rspec to /Users/dmsimard/.atom/packages ✓
~ $ apm install pep8
Installing pep8 to /Users/dmsimard/.atom/packages ✓
~ $ apm install script
Installing script to /Users/dmsimard/.atom/packages ✓
~ $ apm install git-plus
Installing git-plus to /Users/dmsimard/.atom/packages ✗

> runas@0.5.4 install /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/node_modules/git-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild


npm http GET https://registry.npmjs.org/pathwatcher
npm http 200 https://registry.npmjs.org/pathwatcher
npm http GET https://registry.npmjs.org/pathwatcher/-/pathwatcher-1.1.1.tgz
npm http 200 https://registry.npmjs.org/pathwatcher/-/pathwatcher-1.1.1.tgz
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/q
npm http 200 https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/q/-/q-1.0.1.tgz
npm http GET https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http 200 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/emissary/-/emissary-1.2.0.tgz
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/q/-/q-1.0.1.tgz
npm http 200 https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http 200 https://registry.npmjs.org/emissary/-/emissary-1.2.0.tgz
npm http 200 https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! EEXIST, mkdir '/private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark'
File exists: /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark
Move it away, and try again.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-11431-838-mftr7/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark
npm ERR! fstream_path /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/node_modules/git-plus/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/mkdirp
npm ERR! runas@0.5.4 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the runas@0.5.4 install script.
npm ERR! This is most likely a problem with the runas 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 their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/d-11431-838-mftr7/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors/-/property-accessors-1.1.0.tgz
npm http 200 https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm http 200 https://registry.npmjs.org/property-accessors/-/property-accessors-1.1.0.tgz
npm http 200 https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/kd/zz198_5x4mj6v7380s8029v49qzw55/T/apm-install-dir-11431-838-z9e2f6/npm-debug.log
npm ERR! not ok code 0

If I try with sudo:

~ $ sudo apm install git-plus
Password:
Installing git-plus to /Users/dmsimard/.atom/packages ✗

> runas@0.5.4 install /private/tmp/apm-install-dir-11431-1243-ob0ce5/node_modules/git-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild


npm http GET https://registry.npmjs.org/pathwatcher
npm http 304 https://registry.npmjs.org/pathwatcher
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan/0.8.0
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/tmp/apm-install-dir-11431-1243-ob0ce5/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan'
npm ERR! error rolling back  pathwatcher@1.1.1 { [Error: ENOTEMPTY, rmdir '/private/tmp/apm-install-dir-11431-1243-ob0ce5/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/private/tmp/apm-install-dir-11431-1243-ob0ce5/node_modules/git-plus/node_modules/pathwatcher/node_modules/nan' }
npm ERR! runas@0.5.4 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the runas@0.5.4 install script.
npm ERR! This is most likely a problem with the runas 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 their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/dmsimard/.atom/.node-gyp/.atom/.apm/git-plus/0.1.1/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/tmp/apm-install-dir-11431-1243-ob0ce5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/rimraf
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /private/tmp/apm-install-dir-11431-1243-ob0ce5/npm-debug.log
npm ERR! not ok code 0

@dmsimard
Copy link
Author

dmsimard commented Apr 1, 2014

I saw this discussion about the "node" command not found: http://discuss.atom.io/t/node-command-not-found/5604/3

@akonwi
Copy link
Owner

akonwi commented Apr 1, 2014

I guess the problem arises while installing the PathWatcher module. I'll create an issue to remove that dependency. Maybe I'll have a separate branch that is PathWatcher-free

@akonwi akonwi closed this as completed Apr 1, 2014
@akonwi akonwi changed the title Package installation fails Package installation fails(Remove PathWatcher) Apr 1, 2014
@akonwi akonwi reopened this Apr 1, 2014
@dmsimard
Copy link
Author

dmsimard commented Apr 1, 2014

Thanks, let me know when to try again - i'll test and report back the results.

@akonwi
Copy link
Owner

akonwi commented Apr 2, 2014

Just pushed a nowatch branch that doesn't use PathWatcher. Hopefully it works for you. Apparently Node's FileWatcher is still unstable so I don't plan to removing PathWatcher from the apm version unless there is another alternative.

@dmsimard
Copy link
Author

dmsimard commented Apr 2, 2014

Thanks @akonwi ! I would like to try it but the package manager doesn't exactly allow to specify a location to download the package from.

Do you know how I could test this ?

Appreciate it !

@akonwi
Copy link
Owner

akonwi commented Apr 2, 2014

You should be able to clone the repo into /.atom/packages/. Make sure to switch branches to nowatch.

  1. cd ~/.atom/packages
  2. git clone git@github.com:akonwi/git-plus
  3. g checkout -b nowatch origin/nowatch
  4. cd git-plus and apm install

The third step will create a new branch that tracks the nowatch branch here

@alexparker
Copy link

  1. cd ~/.atom/packages
  2. git clone git@github.com:akonwi/git-plus.git
  3. cd git-plus and git checkout -b nowatch origin/nowatch
  4. apm install

Slight edits to the steps to make it work properly.

@akonwi
Copy link
Owner

akonwi commented Apr 7, 2014

Thanks @alexparker. Did you have installation issues too and is this fix working for you?

@alexparker
Copy link

Yup!

@jackcasey
Copy link

This worked for me, but I had to use apm install as the last command. not npm install.

npm install gave this error for some reason:

npm ERR! Error: No compatible version found: fs-plus@'^2.2.0'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.3.0","0.4.0","0.5.0","0.6.0","0.7.0","0.9.0","0.10.0","0.11.0","0.12.0","0.13.0","0.14.0","1.0.0","1.0.1","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.1.0","2.2.0"]

@akonwi
Copy link
Owner

akonwi commented Apr 8, 2014

Alright, I think apm is the better command to use. I should have put it up initially.

@dmsimard
Copy link
Author

dmsimard commented Apr 8, 2014

Haven't had time to test until now.

I had to use sudo apm install, otherwise it would fail.
Works now.

@akonwi
Copy link
Owner

akonwi commented Apr 19, 2014

I just published an update that replaces The pathwatcher dependency with fs-plus. So I think it is safe to close this now

@akonwi akonwi closed this as completed Apr 19, 2014
@philipgiuliani
Copy link

@akonwi im currently having the same pathwatcher issue in my own project. Das fs-plus has a own stable filewatcher?

@akonwi
Copy link
Owner

akonwi commented Aug 30, 2014

@philipgiuliani the default fs in node has file watching. It isn't very robust but we replaced filewatching in this package with the atom api for subscribing to buffer events like saving and destroying.

@philipgiuliani
Copy link

Thanks a lot @akonwi, im now using the fs fileWatcher. It fires some event twice, but im just processing a small amount of data on a change so its not a big problem. Thanks anyways for your help.

Nice package 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants