Useful Node Commands

Node Commands:

  • Install the dependencies into node_modules folder.
    #npm install
  • Install the package globally
    #npm install <package Name>
  • Uninstall the package globally
    #npm uninstall <package Name>
  • To update to latest version
    #npm i npm
  • Launch the node application
    #npm start
  • Prints nodejs version
    #npm –v
  • Updating nmp
    #[sudo] npm install -g npm

Leave a Reply

Your email address will not be published. Required fields are marked *