All Categories

  • module is not Recognized as an Internal or External Command

    4/3/2016 -
    You'll often see following error when running npm command at windows OS system. 'Gulp' is not recognized as an internal or external command, operable program or batch file. 'Bower' is not recognized as an internal or external command, operable program or batch file. 'yo' is not recognized as an internal or external command, operable program or batch file. Basically you have to add to Path to Environment Variables's Path. How to enable gulp? For gulp, you will have to add following path to Path System Variables, so command line will recognize npm's global path. Also install gulp so run command as gulp will be recognized. At the end, you'll have to restart the command line if you have not restart command line after change the system variables.
    Windowsnpmgulp
  • How to Use npm live-server

    3/4/2016 -
    How to use npm's live-server NPM live-server is very cool when you want to setup server to serve files under development, such as server as web server for your HTML/Javascript/CSS files. To use it you'll need to have npm installed first.At my development machine, I'm using windows 7 and node.js version is v6.5.0, npm version is 3.10.3.So after install node.js, type following command to install npm package live-server to your local environment. npm install -g live-server Above command will install npm module live-server global at your machine, once you install you can use it at any directory folder at your pc by typing following command. live-server Now, after you typed the command, if browser show your folder then you're good.
    npmNode.js