angular cli安装

    xiaoxiao2021-03-26  26

    1.安装Node.js URL:https://nodejs.org/en/download/ 选择合适的版本进行安装 2.安装AngularJS CLI angular是用typescript编写的,所以先安装typescript,再安装angularjs-cli npm install -g typescript typings npm install -g angular-cli --ignore-scripts npm install

    3.build项目 在需要build的路径下,先运行npm install,再运行ng build,即可以生成build后的dist文件夹 tips: 清空npm缓存:npm cache clean 查看npm源:npm config get registry 临时切换npm源为taobao源(速度快一点):npm config set registry https://registry.npm.taobao.org

    设置可以查看npm进度:npm config set loglevel=http

    简书地址

    http://www.jianshu.com/p/cba3fa12f0a3

    转载请注明原文地址: https://ju.6miu.com/read-661672.html

    最新回复(0)