Update node source $ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash – Check which nodejs will be installed $ apt-cache policy nodejs nodejs: Installed: (none) read more
Installing node on Mac require brew (Homebrew). If you have not installed it, you can follow Brew installation guide. Here are the steps to install read more
Npm (Node package manager) is used to install/uninstall and manage node packages. Here are some common commands when using npm on command line on Linux read more
To find the file location for a node module require(‘module’)._resolveFilename can be used. Here is quick code snippet and its outcome. file = require(‘module’)._resolveFilename(‘react’) console.log(“react read more
PM2 can be used to manage and run application in production. For this article we are going to use Ubuntu 14.04.2 LTS. But it should read more
Node script when run in limited environment (e.g. php exe, cron, etc.) can throw cannot find module error. The error may look like this: throw read more
Copyright © 2017 InfoHeap.
Powered by WordPress