How to check if chart.js is installed ?

Created at 07-Aug-2022 , By samar

How to check if chart.js is installed ?

In this session, we’ll try our hand at solving the "How to check if chart.js is installed ?" puzzle by using the computer language.

I want to check that the chart.js is installed on not in my node app. How can i know that the package is already installed or not in my node application using command.
  • Check package is installed or not in node app

    You can check if chart.js is installed locally or not using the npm list <package-name> command followed by package name (chart.js).

    npm list chart.js
    

    You can also check if a specific package is installed globally or not using the npm list -g <package-name>.

    npm list -g chart.js
    

    Output

    It will return the output as below if the package is not installed in node app.

    nodeapp@0.0.0 E:\laragon\www\nodeapp
    `-- (empty) 

Back to code snippet queries related nodejs

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.