Script install error - tar unpack


#1

Hi,

The atom editor looks teriffic, and I am trying to set it up to execute python code using the script package, however I receive the error below.

I am using Windows 10 Enterprise without admin rights, which may be the cause of the problem. (If that is indeed the case, any suggestions for a workaround?)

There are no log files in the temporary directory listed in the error message, however there is a node_modules directory filled with program files.

Thanks in advance!

npm ERR! tar.unpack untar error C:\Users\PAUL~1.EGA\AppData\Local\Temp\d-117822-14636-tzxgyh.wc7ejw0zfr\package.tgz
npm ERR! addLocal Could not install C:\Users\PAUL~1.EGA\AppData\Local\Temp\d-117822-14636-tzxgyh.wc7ejw0zfr\package.tgz
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\paul.egan1\\AppData\\Local\\atom\\app-1.20.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\paul.egan1\\AppData\\Local\\atom\\app-1.20.1\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\paul.egan1\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\paul.egan1\\.atom\\.apmrc" "install" "C:\\Users\\PAUL~1.EGA\\AppData\\Local\\Temp\\d-117822-14636-tzxgyh.wc7ejw0zfr\\package.tgz" "--runtime=electron" "--target=1.6.9" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-16208-7aa2b241\unpack-07bb3355\examples\example.sage
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open

npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-16208-7aa2b241\unpack-07bb3355\examples\example.sage'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, open 'C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-16208-7aa2b241\unpack-07bb3355\examples\example.sage'
npm ERR!     at Error (native)
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: 'C:\\Users\\PAUL~1.EGA\\AppData\\Local\\Temp\\npm-16208-7aa2b241\\unpack-07bb3355\\examples\\example.sage' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\PAUL~1.EGA\AppData\Local\Temp\apm-install-dir-117822-14636-1ckgf9u.7hw43x47vi\npm-debug.log

#2

Update: I have just tried installing another package, autocomplete-python, which installed successfully.


#3

You should never have to run Atom with admin rights unless you’re opening a protected file.

What happens if you delete the contents of C:\Users\PAUL~1.EGA\AppData\Local\Temp and try again?


#4

Thanks for getting back to me @DamnedScholar.
I deleted as suggested, unfortunately looks like the same error:

C:\Users\paul.egan1>apm install script
Installing script to C:\Users\paul.egan1\.atom\packages failed

npm ERR! tar.unpack untar error C:\Users\PAUL~1.EGA\AppData\Local\Temp\d-117826-14632-yh1fy2.zv7elba9k9\package.tgz
npm ERR! addLocal Could not install C:\Users\PAUL~1.EGA\AppData\Local\Temp\d-117826-14632-yh1fy2.zv7elba9k9\package.tgz
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\paul.egan1\\AppData\\Local\\atom\\app-1.20.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\paul.egan1\\AppData\\Local\\atom\\app-1.20.1\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\paul.egan1\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\paul.egan1\\.atom\\.apmrc" "install" "C:\\Users\\PAUL~1.EGA\\AppData\\Local\\Temp\\d-117826-14632-yh1fy2.zv7elba9k9\\package.tgz" "--runtime=electron" "--target=1.6.9" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-11048-bcd674ae\unpack-b9de50f2\examples\example.sage
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open

npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-11048-bcd674ae\unpack-b9de50f2\examples\example.sage'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, open 'C:\Users\PAUL~1.EGA\AppData\Local\Temp\npm-11048-bcd674ae\unpack-b9de50f2\examples\example.sage'
npm ERR!     at Error (native)
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: 'C:\\Users\\PAUL~1.EGA\\AppData\\Local\\Temp\\npm-11048-bcd674ae\\unpack-b9de50f2\\examples\\example.sage' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\PAUL~1.EGA\AppData\Local\Temp\apm-install-dir-117826-14632-g81nl3.xhjiz4cxr\npm-debug.log 

Interestingly, there is a tar file in the tgz file. I tried unzipping manually with winzip and it fails on exacly the same file, example.sage.

There still isn’t a log file to share unfortunately.


#5

Okay, that’s bizarre but we have something to work with. I want you to go to the script repo and try cloning it. Do you have git installed? If not, you should. Open the command line, navigate to wherever you like to keep code, and run these four commands to manually install the package:

git clone https://github.com/rgbkrk/atom-script
cd atom-script
npm install
apm link

The negative side of this is that you won’t get automatic updates, but our first concern is getting the package up and running.