Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Can't install Script Pckage on Atom #11798

Closed
ghost opened this issue May 20, 2016 · 8 comments
Closed

Can't install Script Pckage on Atom #11798

ghost opened this issue May 20, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented May 20, 2016

Description

I had installed latest version of atom text editor but can't install Script Package in it.

Steps to Reproduce

  1. sudo apm install script

Expected behavior: Successfully Install

Actual behavior:

Installing script to /home/nobodyu/.atom/packages ✗

npm ERR! tar.unpack error reading /tmp/d-116420-6488-v8x98x/package.tgz
npm ERR! addLocal Could not install /tmp/d-116420-6488-v8x98x/package.tgz
npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/nobodyu/.atom/.apm/.apmrc" "--userconfig" "/home/nobodyu/.atom/.apmrc" "install" "/tmp/d-116420-6488-v8x98x/package.tgz" "--target=0.36.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3

npm ERR! 0-byte tarball
npm ERR! Please run `npm cache clean`
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-116420-6488-1ik6grb/npm-debug.log

Versions

Atom : 1.7.3
Electron: 0.36.8
Chrome : 47.0.2526.110
Node : 5.1.1

@Nikki1993
Copy link

Nikki1993 commented May 20, 2016

@janoop have you tried running npm cache clean as the ERR message suggests and then trying to install the script?

@ghost
Copy link
Author

ghost commented May 20, 2016

yes but that makes no difference

@Nikki1993
Copy link

Nikki1993 commented May 20, 2016

Why are you using root to install the script in the home directory btw? Have you tried running the install command without sudo? or directly through Atom Editor?

apm install script

@ghost
Copy link
Author

ghost commented May 20, 2016

yes but it gives same error

@Nikki1993
Copy link

Alright, since you tried installing apm package with sudo, try running sudo npm cache clean Also, clean cache folders in your atom editor. ~/.atom/.apm (and ~/.atom/.npm) are download cache folders. Based on this info it's safe to delete what's inside those folders since it's package caches. Try clearing out those and then try installing package through atom editor again.

make sure you quit atom editor before clearing folders.

@ghost
Copy link
Author

ghost commented May 21, 2016

Cool it worked thanks. Nikki1993,
so what i did is sudo npm cache clean
and then deleted all folders from ~/.atom/.apm
and there was no directory named .npm so i created it and the
executed the command sudo apm install script
and this time output is Installing script to /home/nobodyu/.atom/packages ✓

Thanks Once Again

@ghost ghost closed this as completed May 21, 2016
@lauyader
Copy link

Hay que reinstalar Atom

@lock
Copy link

lock bot commented Apr 6, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked and limited conversation to collaborators Apr 6, 2018
This issue was closed.
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

2 participants