Install Node + NPM in Windows
Author: zhanhailiang Date:
1. download and install the latest version nodejs: node-v0.10.32-x64.msi. Note: During installation, add node.exe to the Path. The test is as follows:
D:\Users\wade.zhan>node --versionv0.10.32
2. Download and install git: git. The test is as follows:
D:\Users\w
Objective
Recently found a problem, run the npm install command to install a dependency pack, on the Mac vagrant installed on the virtual machine is not a problem, on the Aliyun CentOS is not a problem, but in the Windows environment is also a vagrant installed environment of the same virtual machine is not successful, the error is as follows:
One: node. js Ann TurnsMethod One: Download the node. js for MacAddress: http://nodejs.org/download/Download the pkg directly, double-click the installation, all the way to next, it is easy to get it done.The installation will alert you that the path to node and NPM is/usr/local/bin.Method Two: Install with homebrew1. Installing homebrewHomebrew installation is very simple, open the terminal copy, paste the
NPM's package installation is divided into local installation (locals), global installation (globally), and from the command line, the difference is just that there is no-G, such as
NPM Install Grunt # Local Installation
NPM install-g GRUNT-CLI # Global Installation
What's the difference between the two installation
NPM's package installation is divided into local installation (locals), global installation (globally), and from the command line, the difference is only G, for example:
Copy Code code as follows:
NPM Install Grunt # Local Installation
NPM install-g GRUNT-CLI # Global Installation
explained separately bel
This article mainly introduces the difference between Nodejs NPM install global installation and non-global installation, that is, with parameter-G and without parameter-G installation, the need for friends can refer to the
NPM's package installation is divided into local installation (locals), global installation (globally), and from the command line, the difference is only G, for example:Copy code code as
NPM INSTALL-G Global Installation always has a solution for permission permissions issuesWhen you start using node, when you use NPM to install global packages, you habitually use npm install-g xxx, and then always prompt for perm
This article describes how to install Node. JS on Amazon's one-year free plan, NPM, and OurJS Blog system ., For more information, see Debian for the Community edition. The operation commands of Debian and Ubuntu are in the same line, I am familiar with it. The following installation process is also applicable to the installation of node. js and NPM ).
1) Regist
1. Uninstall Node NPM(1) Uninstall NPM First:sudo npm uninstall npm-g(2) then uninstall node. js.(2.1) If it is an Ubuntu system and is installed using Apt-get, you can use the command:sudo apt-get Remove Nodejs(2.2) Source file installation node, uninstall mode: first CD to Unzip to the directory:sudo make Uninstall(2
1. Install vpsmateRun the following code in sequence:Cd/usr/src/Wget http://www.vpsmate.org/tools/install.pyPython install. pyYou need the username and password to log on to the vpsmate administrator background.The reason for choosing vpsmate is that it does not automatically install PHP, apache, and mysql, although it supports one-click installation of these ser
Today with
NPM Install Grunt-cmd-transport--save-dev
This command installed the SEAJS built grunt plugin, do not know what the--save-dev parameters mean, check the data, recorded in this
General NPM installed Grunt plugin There are 2 ways, one is written in the Package.json devdependencies, and then directly execute NPM
Today with
NPM Install Grunt-cmd-transport--save-dev
This command installs the Seajs build grunt plugin, do not know what the--save-dev parameter means, check the following information, recorded in this
There are 2 ways to install grunt plugin in NPM, one is to write in Package.json devdependencies first, then execu
Nodejs official website: Download Nodejs sourceNodejs Chinese CommunityNode Packaged ModulesA POSIX system that compiles node. js requires three tools:
c++ compiler gcc or CLANG/LLVM
python2.5 , does not support python3
libssl-dev provides ssl/tls Encryption supports
Download Source Bundle:node-v0.10.29.tar.gzTar zxvf node-v0.10.29.tar.gzcd node-v0.10.29./configuremakesudo make install650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/40/
NPM package installation is divided into local installation (locally), the global installation of two, from the command line to see, the difference is only G-only, such as:-G GRUNT-CLI # Global Installation:explained separately below.1. When NPM installs Xxx-g, the module will be downloaded and installed into the global catalog.The "Global Catalog" is set by the NPM
NPM Global installation and local installationnpm install express # 本地安装npm install express -g # 全局安装Local Installation
Place the installation package under./node_modules (the directory where the NPM command is running), and if there is no Node_modules direct
NPM package installation is divided into local installation (locally), the global installation of two, from the command line to see, the difference is only G, such asNPM Install Grunt # Local installation NPM install-g GRUNT-CLI # Global InstallationWhat is the difference between these two types of installation? From t
Npm package installation can be divided into local installation and global installation. from the command line, the difference is-g. For example:Copy codeThe Code is as follows:Npm install grunt # local InstallationNpm install-g grunt-cli # global installationThe following are explanations.1. When npm
About Nodejs How to install I will not list, online more is a tutorial.General network environment, if we want to install express.js these, only need to execute NPM install Express, but when everyone in a proxy Internet environment, this error. How to do the NPM command prox
Since NPM and CNPM are able to install components, some of the installed components are stored in the C-drive user directory of the AppData hidden directory, and some are saved in the directory of the installation node, and installed in the C drive, the reinstall system has to be re-deployed, it is troublesome, so here to provide elegant installation of the way, no longer afraid of reloading system , no lon
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.