# Can't install ink package

**URL:** https://discourse.julialang.org/t/cant-install-ink-package/12691
**Category:** Juno
**Created:** [July 27, 2018, 8:35pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691 "2018-07-27T20:35:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dldx](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dldx/32/4776_2.png) [@dldx](https://discourse.julialang.org/u/dldx)
#### Post date: [July 27, 2018, 8:35pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/1 "2018-07-27T20:35:41Z")

</div>

Hey everyone,

I’m trying to install ink but I keep getting this error:

```julia
 ~> apm install ink
Installing ink to /home/durand/.atom/packages ✗

> ink@0.9.2 postinstall /tmp/apm-install-dir-118627-21140-6lav6e/node_modules/ink
> node scripts/postinstall.js

/tmp/apm-install-dir-118627-21140-6lav6e
└── (empty)

/tmp/apm-install-dir-118627-21140-6lav6e/node_modules/ink/node_modules/replace-in-file/lib/replace-in-file.js:30
  const {
        ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/tmp/apm-install-dir-118627-21140-6lav6e/node_modules/ink/node_modules/replace-in-file/index.js:1:80)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-118627-21140-6lav6e/package.json'
npm WARN apm-install-dir-118627-21140-6lav6e No description
npm WARN apm-install-dir-118627-21140-6lav6e No repository field.
npm WARN apm-install-dir-118627-21140-6lav6e No README data
npm WARN apm-install-dir-118627-21140-6lav6e No license field.
npm ERR! Linux 4.4.0-131-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/durand/.atom/.apm/.apmrc" "--userconfig" "/home/durand/.atom/.apmrc" "install" "/tmp/d-118627-21140-1hzqga9/package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! ink@0.9.2 postinstall: `node scripts/postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ink@0.9.2 postinstall script 'node scripts/postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ink package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ink
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ink
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-118627-21140-6lav6e/npm-debug.log
npm ERR! code 1

```

I installed juno a while ago but ink has failed to update for months due to the same error…

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Juser](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Juser](https://discourse.julialang.org/u/Juser)
#### Post date: [July 27, 2018, 9:01pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/2 "2018-07-27T21:01:50Z")

</div>

> [@dldx](#):
>
> have the latest version of node.js and npm installed

Do you have the latest versions of these installed?

---

<div class="post-metadata">

### Author: ![dldx](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dldx/32/4776_2.png) [@dldx](https://discourse.julialang.org/u/dldx)
#### Post date: [July 27, 2018, 9:19pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/3 "2018-07-27T21:19:58Z")

</div>

I just installed the latest version of node but it seems like atom ships with a much older version of it.

> durand@Deuterium:~$ /usr/share/atom/resources/app/apm/bin/node --version  
> v4.4.5

> durand@Deuterium:~$ node --version  
> v10.7.0

Still get the same error 😕

---

<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: [July 28, 2018, 10:49am UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/4 "2018-07-28T10:49:55Z")

</div>

What version of Atom are you using?

---

<div class="post-metadata">

### Author: ![dldx](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dldx/32/4776_2.png) [@dldx](https://discourse.julialang.org/u/dldx)
#### Post date: [July 28, 2018, 7:41pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/5 "2018-07-28T19:41:29Z")

</div>

Aha, that was my issue! I thought atom updated automatically but it turns out you still have to manually update it through your system package manager. Whoops. Thanks!

---

<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: [July 28, 2018, 7:42pm UTC](https://discourse.julialang.org/t/cant-install-ink-package/12691/6 "2018-07-28T19:42:36Z")

</div>

Great, glad it works for you now 🙂
