angular2 搭建项目

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010820857/article/details/83900097

windows10 下 安装npm 和 node

1、下载 node.msi 安装包,里面包含了node.js和npm;

双击node.msi就行了,选择安装路径和npm


[https://nodejs.org/en/download/](https://nodejs.org/en/download/)

2、设置环境变量


我的安装目录为:D:\Program Files\nodejs

所以: 

变量名:NODE_PATH

值:D:\Program Files\nodejs\node_modules

image.png

3 、安装git 配置环境变量


我的路径:D:\Program Files (x86)\Git\bin

4、 运行 angular 2 的模板(sing):


# change directory to our repo

cd sing/angular2

# makesure typings are installed globally

npm install -g typings

# install the repo with npm

npm install

# start the server

npm start

# use Hot Module Replacement

npm run server:dev:hmr

go to http://0.0.0.0:3000 or http://localhost:3000 in your browser

猜你喜欢

转载自blog.csdn.net/u010820857/article/details/83900097