Node环境部署

全局依赖

npm install -g yarn
npm install -g pm2
npm install -g umi
npm install -g cnpm
npm install -g node-gyp
cnpm install -g node-sass

ionic node-sass需要安装visual studio、python解决方法

直接下载编译好的node-sass二进制资源,不编译,即可(用cnpm安装)。

cnpm install -g node-sass

源配置

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
上一篇 React Hook 简介及入门
下一篇 本地Node环境搭建
目录
文章列表
1 注解 @AutoConfigureBefore 和 @AutoConfigureAfter 的用途
注解 @AutoConfigureBefore 和 @AutoConfigureAfter 的用途
2
Vue组件中直接获取Vuex状态state数据
Vue组件中直接获取Vuex状态state数据
3
MySQL怎么修改锁记录超时等待时间
MySQL怎么修改锁记录超时等待时间
4
AWS ACM 导入证书
AWS ACM 导入证书
5
Nginx非80端口访问域名配置
Nginx非80端口访问域名配置
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。