sveale/external-open

Cannot install package

Opened this issue · 4 comments

Hi!
I'm trying to install this package but keep getting the error below. Any help would be appreciated!

Installing “external-open@0.6.3” failed.Hide output…

npm ERR! Darwin 16.0.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/mairan/.atom/.apm/.apmrc" "--userconfig" "/Users/mairan/.atom/.apmrc" "install" "/private/var/folders/ts/8vv380991jb5kdv90t5k04zc0000gn/T/d-116911-38615-w110cx/package.tgz" "--runtime=electron" "--target=0.37.8" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code EREADFILE

npm ERR! Error extracting /Users/mairan/.atom/.apm/fs/0.0.0/package.tgz archive: ENOENT: no such file or directory, open '/Users/mairan/.atom/.apm/fs/0.0.0/package.tgz'
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/ts/8vv380991jb5kdv90t5k04zc0000gn/T/apm-install-dir-116911-38615-1erloik/npm-debug.log

I can't either, different output

(node:5876) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.


npm ERR! Linux 4.8.9-1-MANJARO
npm ERR! argv "/usr/bin/node" "/usr/lib/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/frdm/.atom/.apm/.apmrc" "--userconfig" "/home/frdm/.atom/.apmrc" "install" "/tmp/d-116113-5876-qtjfzw.p4zl8wu3di/package.tgz" "--runtime=electron" "--target=1.4.8" "--arch=x64" "--global-style"
npm ERR! node v7.2.0
npm ERR! npm  v4.0.2
npm ERR! code EREADFILE

npm ERR! Error extracting /home/frdm/.atom/.apm/fs/0.0.0/package.tgz archive: ENOENT: no such file or directory, open '/home/frdm/.atom/.apm/fs/0.0.0/package.tgz'
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-116113-5876-fmv811.mvsgyi7ldi/npm-debug.log

@sveale @zhangkaiyulw

Hello, I've encountered the same error just now and here's how I fixed it:

Note: You may have noticed that apm is extracting "/Users/mairan/.atom/.apm/fs/0.0.0/package.tgz" . Try to take a look at this path and check if the directory 0.0.0 exists. If you have updated your atom to the latest, you won't see that folder, hence, the error:

npm ERR! Error extracting /Users/mairan/.atom/.apm/fs/0.0.0/package.tgz archive: ENOENT: no such file or directory, open '/Users/mairan/.atom/.apm/fs/0.0.0/package.tgz

What you'll see there is the directory named 0.0.x where x is the incremental value of the version.

Duplicate the whole 0.0.x directory and rename it to 0.0.0.

Try installing external-open again.

Hope this helps!

Oh, and don't forget to delete the 0.0.0 directory after the installation. Not sure, but it may cause problems.

@ickyrr that worked, sadly the plugin doesn't has so many issues I won't take time now to write them all now.

@sveale, any update on this? Still seems to be an issue.