1、设置http代理 npm config set proxy=http://代理服务器地址:8080 2、取消代理 npm config delete proxy 3、npm设置淘宝镜像 npm config set registry=https://registry.npm.taobao.org ...
分类:
其他好文 时间:
2020-10-14 20:10:31
阅读次数:
28
检查了 node -v,npm -v命令,都正常后,使用管理员身份运行,重新安装 ionic 即可。 安装完成后,使用ionic -v命令检查是否安装成功 ...
分类:
其他好文 时间:
2020-10-13 17:52:33
阅读次数:
52
安装yarn npm install -g yarn 安装成功后,查看版本号: yarn --version 创建文件夹 yarn md yarn 进入yarn文件夹 cd yarn 初始化项目 yarn init // 同npm init,执行输入信息后,会生成package.json文件 yar ...
分类:
其他好文 时间:
2020-10-13 17:42:26
阅读次数:
32
npm报错 npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID 在下载npm依赖包输入 npm install 命令的时候出错 以下是错误信息 错误信息: npm ERR! co ...
分类:
其他好文 时间:
2020-10-13 17:38:08
阅读次数:
43
一、使用cnpm 1.使用阿里定制的 cnpm 命令行工具代替默认的 npm,输入下面代码进行安装: $ npm install -g cnpm --registry=https://registry.npm.taobao.org 以后安装插件只需要使用cnpm intall即可。 二、仍然使用np ...
分类:
其他好文 时间:
2020-10-13 17:35:21
阅读次数:
27
在做一些简单的demo时,偶尔会遇到导出excel表格。如果请后端帮忙的话 比较浪费时间,那么前端如何导出excel表格,下面就来记录一下之前使用到的案例 一、安装依赖 npm i file-saver xlsx script-loader -S 或 yarn add file-saver xlsx ...
分类:
其他好文 时间:
2020-10-12 20:42:36
阅读次数:
24
在实际的项目中,和后台的数据交互是少不了的,我通常使用的是 axios 库,所以以下示例也是以 axios 为基础来进行封装的。如果对 axios 不了解的,请看这里 axios 文档 1、安装 首先是 npm 安装 axios 很简单:npm install axios 2、没有封装存在的问题 如 ...
分类:
移动开发 时间:
2020-10-12 20:30:28
阅读次数:
34
1.安装依赖 npm install svg-sprite-loader --save-dev 2.在src/components下新建文件夹及文件SvgIcon/index.vue <template> <svg :class="svgClass" aria-hidden="true" v-on= ...
分类:
其他好文 时间:
2020-10-08 19:52:08
阅读次数:
39
MongoDB增删改查操作 MongoDB数据库服务启动和关闭 net start mongodb net stop mongodb 数据库连接 先使用npm install mongoose安装mongoose依赖,之后使用mongoose提供的connect方法即可连接数据库。 const mo ...
分类:
数据库 时间:
2020-10-08 18:21:12
阅读次数:
25
程序均下载安装Windows 64位的 下载并默认路径安装Android Studio,下载地址https://developer.android.google.cn/studio/ 下载并默认路径安装JDK(jdk-8u261-windows-x64.exe) ,下载地址https://www.o ...
分类:
移动开发 时间:
2020-10-08 18:18:29
阅读次数:
41