Npm WARN deprecated cross-spawn-async@2.2.5


#1

Hi :slight_smile:

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 and its running fine - and it hosted by digitalocean, but im tired of the warning

Kind regards

Thomas


#2

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 upgrading whichever dependency is triggering the warning.


#3

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

Can you help me out here?


#4

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


#5

Hi again :slight_smile:

Thanks for your reply!

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/

Thanks for explaining this to me. :blush:

Any Help Will Be Appreciated


#7

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 :wink:) . It won’t go away from re-installing anything, the dependencies/code in 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):

https://docs.npmjs.com/about-npm/
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 :slight_smile:


#8

Hi :slight_smile:

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

I will ignore the warning, and wait for an update

Kind regards

Thomas


closed #9

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