How to fix nodemon install error 🛠 | How to install nodemon in visual studio code terminal

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • How to fix nodemon install error 🛠 | How to install nodemon in visual studio code terminal
    nodemon is a tool that helps develop Node.js based applications by automatically restarting the node application when file changes in the directory are detected.
    nodemon does not require any additional changes to your code or method of development. nodemon is a replacement wrapper for node. To use nodemon, replace the word node on the command line when executing your script.
    Advantages of Using nodemon Module:
    It is easy to use and easy to get started.It does not affect the original code and no instance require to call it.It help to reduce the time of typing the default syntax node fileName for execution again and again.
    To install nodemon globally on Linux, below command:
    $ npm install -g nodemon
    will not work as it requires root privileges.
    If it is installed with :
    $ sudo npm install -g nodemon
    it will install on the local machine in the root folders.
    If we do not want to install it globally on our Linux computer, we need to install it locally in our node_modules folder only. To install nodemon on Linux locally without root privileges, open the terminal window and enter the command below:
    $ npm i nodemon
    It cannot be be run using node nodemon server.js, since it is installed locally. To run nodemon as a local service in Linux, open a terminal window and run the javascript as below:
    $ npx nodemon server.js
    Now it will work. If code changes in server.js, nodemon will detect the changes and when the route is referenced from a browser, it will show the updated content.
    #nodemon #nodejs #vscode

Комментарии • 10

  • @a.luhur.nugrohoxiirpl-d5795
    @a.luhur.nugrohoxiirpl-d5795 2 месяца назад +1

    thank you, this vidio so helpfull to me

  • @hrtech892
    @hrtech892 29 дней назад +2

    sudo is not recognised

    • @mjhacks6443
      @mjhacks6443  29 дней назад

      @@hrtech892 Which OS are you using? Ubuntu or Windows or Mac?

  • @k.kgaming8357
    @k.kgaming8357 4 месяца назад +1

    It show funding

    • @mjhacks6443
      @mjhacks6443  4 месяца назад

      was it fixed? If not copy paste the error here

  • @kautsarbaihaqiakasyah4632
    @kautsarbaihaqiakasyah4632 8 месяцев назад +1

    saat install nodemon gabisa kenapa yah mas

    • @mjhacks6443
      @mjhacks6443  8 месяцев назад

      1. Which OS are you using?
      2. Comment your error?

  • @shubhampatidar5684
    @shubhampatidar5684 10 месяцев назад +1

    What is the password

    • @mjhacks6443
      @mjhacks6443  10 месяцев назад

      It is your login password.
      Thanks for the comment. Please subscribe💟