# Npm WARN deprecated cross-spawn-async@2.2.5

**URL:** <https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218>\
**Category:** Installation\
**Created:** [January 22, 2019, 2:21pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218 "2019-01-22T14:21:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taxick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/taxick/32/10960_2.png) [@Taxick](https://forum.ghost.org/u/Taxick)\
**Post date:** [January 22, 2019, 2:21pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/1 "2019-01-22T14:21:02Z")

</div>

Hi :)

I already have a post, but it’s closed. so that’s why I make this post.

**I want to fix the _npm WARN deprecated_**

**Version**

```
ghost-mgr@server:/var/www/ghost$ ghost --version
Ghost-CLI version: 1.9.9
Ghost version: 2.12.0 (at /var/www/ghost)

```

**Warning**

```
ghost-mgr@server:/var/www/ghost$ sudo npm i -g ghost-cli@latest
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
/usr/local/bin/ghost -> /usr/local/lib/node_modules/ghost-cli/bin/ghost
/usr/local/lib
└── ghost-cli@1.9.9

ghost-mgr@server:/var/www/ghost$

```

How to fix this **warning: npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead**

I know its not a problem for the site to run, but I tired of the warning

My homepage is: [https://www.halfdaner.dk](https://www.halfdaner.dk) and its running fine - and it hosted by digitalocean, but im tired of the warning

Kind regards

Thomas

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [January 22, 2019, 2:28pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/2 "2019-01-22T14:28:39Z")

</div>

It’s a warning from npm. If you want to fix it then you’d need to send a PR to Ghost-CLI [GitHub - TryGhost/Ghost-CLI: CLI Tool for installing & updating Ghost](https://github.com/TryGhost/Ghost-CLI) upgrading whichever dependency is triggering the warning.

---

<div class="post-metadata">

**Author:** ![Taxick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/taxick/32/10960_2.png) [@Taxick](https://forum.ghost.org/u/Taxick)\
**Post date:** [January 22, 2019, 2:30pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/3 "2019-01-22T14:30:53Z")

</div>

Sorry Hannah, I’m a noob. What did you mean with PR

Can you help me out here?

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [January 22, 2019, 2:39pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/4 "2019-01-22T14:39:09Z")

</div>

PR = GitHub Pull Request  
[https://help.github.com/articles/about-pull-requests/](https://help.github.com/articles/about-pull-requests/)

---

<div class="post-metadata">

**Author:** ![Taxick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/taxick/32/10960_2.png) [@Taxick](https://forum.ghost.org/u/Taxick)\
**Post date:** [January 22, 2019, 3:29pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/5 "2019-01-22T15:29:53Z")

</div>

Hi again :)

Thanks for your reply!

> [@Hannah](#):
>
> It’s a warning from npm. If you want to fix it then you’d need to send a PR to Ghost-CLI [https://github.com/TryGhost/Ghost-CLI](https://github.com/TryGhost/Ghost-CLI) upgrading whichever dependency is triggering the warning.

**I’m really a NOOB! Really!!** - **So please step by step.**

Can someone guide me step by step to find the dependency that is triggering the warning?  
and make a pull request?

I have tried to reinstall the hole server from digital ocean, and still, the same error when I running “sudo npm i -g ghost-cli@latest” efter end install

Thanks @dsecareanu

PR = GitHub Pull Request  
[https://help.github.com/articles/about-pull-requests/](https://help.github.com/articles/about-pull-requests/)

Thanks for explaining this to me. 😊

**Any Help Will Be Appreciated**

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 22, 2019, 5:09pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/7 "2019-01-22T17:09:35Z")

</div>

> [@Taxick](#):
>
> I have tried to reinstall the hole server from digital ocean, and still, the same error when I running “sudo npm i -g ghost-cli@latest” efter end install

It’s not an error, it’s just a warning and is completely safe to ignore (you’ll probably see a lot of them over time 😉) . It won’t go away from re-installing anything, the dependencies/code in [GitHub - TryGhost/Ghost-CLI: CLI Tool for installing & updating Ghost](https://github.com/TryGhost/Ghost-CLI) need updating and a new Ghost-CLI version released, once a new release has been made public you would need to install the new version of Ghost-CLI for the warning to disappear.

If you’re up for going down a rather large node.js development rabbit hole here are some resources that may be useful if you want to help update the Ghost-CLI dependencies (in addition to the pull requests link above):

> **[About npm | npm Docs](https://docs.npmjs.com/about-npm/)**
>
> Documentation for the npm registry, website, and command-line interface

[Yarn](https://yarnpkg.com/en/) (we use this as an alternative client to the npm registry)

If you only want to run your site, ignore the warning and be happy 🙂

---

<div class="post-metadata">

**Author:** ![Taxick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/taxick/32/10960_2.png) [@Taxick](https://forum.ghost.org/u/Taxick)\
**Post date:** [January 22, 2019, 6:01pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/8 "2019-01-22T18:01:12Z")

</div>

Hi 🙂

Thanks for explaining me this in languages, so I understand it. 😉

I will ignore the warning, and wait for an update

Kind regards

Thomas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [February 5, 2019, 6:01pm UTC](https://forum.ghost.org/t/npm-warn-deprecated-cross-spawn-async-2-2-5/5218/9 "2019-02-05T18:01:16Z")

</div>

Closed on February 5, 2019, 6:01pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
