How to install Webpack with NPM

Source: Internet
Author: User
Tags install node

Stroll Reactjs, Angular2,vuejs community, Daniel Blog, when you know the most likely to see the webpack,webpack this build tool has been widely recognized in the community, And Webpack has become the standard of react.js development, so we need to learn about Webpack.

So I read a lot of blog on the Internet, the leisure time summed up some of the methods used, due to the limited technology may be some lack of hope to advise.

First Webpack is what, using webpack is to solve what kind of programming problem, official online has this problem legend https://webpack.github.io/

I also searched the internet for some ideas and instructions from our predecessors.

Http://deshui.wang/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/2016/07/20/fullstack-webpack-introduction

I'll add a little bit of detail to the original blogger. First use NPM to install webpack need to install node

1, go to node. JS official website http://www.nodejs.org/Download the latest version of node. js.

2, run the file just downloaded Node-v0.10.35-x64.msi (32-bit system is node-v0.10.35-x86.msi), like other software tick small box and then decrement "next", in the selection of the installation path, the default path is C:Program Filesnodejs.

3. Right-click on "Start" and select "Command prompt (Administrator mode) to enter NPM install webpack-g (wait for complete install-G is a global installation)

NPM package installation is divided into local installation (locally), global installation

Local Installation:
NPM Install XXX Installs to the Node_module directory where the command line is located.
Global Installation:
NPM Install xxx- g mount to \appdata\roaming\npm\node_modules directory

Nodejs differences between a global installation and a local installation

NPM frequently used commands

  

  

How to install Webpack with NPM

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.