# Atom - Will not install ink

**URL:** <https://discourse.julialang.org/t/atom-will-not-install-ink/21270>\
**Category:** Juno\
**Tags:** installation\
**Created:** [February 27, 2019, 4:54pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270 "2019-02-27T16:54:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 4:54pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/1 "2019-02-27T16:54:54Z")

</div>

Using Ubuntu 18  
After some troubles, I had Juno working enough to code a bit, but only if I ran it as sudo. Fine. I remember having to delete my packages folder in .atom to get ink to install the first time. Eventually, atom will not start, so I attempt to reinstall it.

Now having to reinstall Juno is a nightmare. I get the previous error of ink not being able to install. My previous trick of deleting the packages folder to install ink does not work! I tried installing julia-client, uber-juno, ink from apm at the command line, but this also does not work. I then tried updating atom itself using apm to install atom-updater-linux. Wonderfully, this does not work as well, it appears to install an update, but after restarting it tries to update again and again endlessly.

What do I do now?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 27, 2019, 4:57pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/2 "2019-02-27T16:57:46Z")

</div>

What version of Atom are you running and how did you install it? You should never need to run package installation as `sudo`.

Also, what is the output of `apm install ink`? It’s basically impossible to help you if you don’t post the error messages.

---

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 5:09pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/3 "2019-02-27T17:09:59Z")

</div>

I got version 1.26.1-1  
Installed using sudo apt-get install. Unable to install anything with apt-get without sudo.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 27, 2019, 5:12pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/4 "2019-02-27T17:12:20Z")

</div>

Right, then please get a newer version e.g. by downloading it directly from [https://atom.io/](https://atom.io/).

> Installed using sudo apt-get install. Unable to install anything with apt-get without sudo.

I meant installation of Atom packages via `apm install` or the Atom GUI should never need sudo.

---

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 5:22pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/5 "2019-02-27T17:22:26Z")

</div>

Ok just now:  
Did a sudo apt-get remove atom --purge  
Downloaded the .deb package from https:://atom.io  
Installed it using package manager.

Still can only open as sudo. When I do it immediately tries to install ink and fails with the same error.

---

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 5:24pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/6 "2019-02-27T17:24:31Z")

</div>

this is the stack trace from running sudo apm install ink

> ink@0.9.14 postinstall /tmp/apm-install-dir-119127-7754-a1ur7z.g7au8/node\_modules/ink  
> node scripts/postinstall.js

module.js:538  
throw err;  
^

Error: Cannot find module ‘/tmp/apm-install-dir-119127-7754-a1ur7z.g7au8/node\_modules/ink/scripts/postinstall.js’  
at Function.Module.\_resolveFilename (module.js:536:15)  
at Function.Module.\_load (module.js:466:25)  
at Function.Module.runMain (module.js:676:10)  
at startup (bootstrap\_node.js:187:16)  
at bootstrap\_node.js:608:3  
npm WARN enoent ENOENT: no such file or directory, open ‘/tmp/apm-install-dir-119127-7754-a1ur7z.g7au8/package.json’  
npm WARN apm-install-dir-119127-7754-a1ur7z.g7au8 No description  
npm WARN apm-install-dir-119127-7754-a1ur7z.g7au8 No repository field.  
npm WARN apm-install-dir-119127-7754-a1ur7z.g7au8 No README data  
npm WARN apm-install-dir-119127-7754-a1ur7z.g7au8 No license field.

npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! ink@0.9.14 postinstall: `node scripts/postinstall.js`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the ink@0.9.14 postinstall script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/cwmancuso/.atom/.apm/\_logs/2019-02-27T17\_23\_44\_262Z-debug.log

---

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 5:32pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/7 "2019-02-27T17:32:50Z")

</div>

Solved! Installed atom-beta

Thanks for your help

---

<div class="post-metadata">

**Author:** ![cwmancuso](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@cwmancuso](https://discourse.julialang.org/u/cwmancuso)\
**Post date:** [February 27, 2019, 8:42pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/8 "2019-02-27T20:42:08Z")

</div>

Okay. Now I tried to install atom-beta on my workstation (Ubuntu 16.04)using what worked on my other computer… and I get the ink error again. this is the stack trace. Any suggestions?

ink@0.9.14 postinstall /tmp/apm-install-dir-119127-11425-unk3m5.aib9s/node\_modules/ink

> node scripts/postinstall.js

module.js:538  
throw err;  
^

Error: Cannot find module ‘/tmp/apm-install-dir-119127-11425-unk3m5.aib9s/node\_modules/ink/scripts/postinstall.js’  
at Function.Module.\_resolveFilename (module.js:536:15)  
at Function.Module.\_load (module.js:466:25)  
at Function.Module.runMain (module.js:676:10)  
at startup (bootstrap\_node.js:187:16)  
at bootstrap\_node.js:608:3  
npm WARN enoent ENOENT: no such file or directory, open ‘/tmp/apm-install-dir-119127-11425-unk3m5.aib9s/package.json’  
npm WARN apm-install-dir-119127-11425-unk3m5.aib9s No description  
npm WARN apm-install-dir-119127-11425-unk3m5.aib9s No repository field.  
npm WARN apm-install-dir-119127-11425-unk3m5.aib9s No README data  
npm WARN apm-install-dir-119127-11425-unk3m5.aib9s No license field.

npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! ink@0.9.14 postinstall: `node scripts/postinstall.js`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the ink@0.9.14 postinstall script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/cwmancuso/.atom/.apm/\_logs/2019-02-27T20\_38\_49\_339Z-debug.log

---

<div class="post-metadata">

**Author:** ![MLackner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlackner/32/2789_2.png) [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Post date:** [March 1, 2019, 6:18pm UTC](https://discourse.julialang.org/t/atom-will-not-install-ink/21270/9 "2019-03-01T18:18:20Z")

</div>

I get the same error on Windows 10 64bit and a fresh Atom install.
