注意: 基于 webpack 5.x 版本。参考官方文档:https://webpack.js.org/guides/getting-started/#npm-scripts 1、初始化项目 创建文件夹 webpacktest ,在此文件夹路径下执行以下命令,创建 package.json 文件,用 ...
分类:
Web程序 时间:
2020-12-17 12:08:44
阅读次数:
2
npm i wangeditor --save 页面单独引入 import E from "wangeditor"; <div id="div1"></div> data(){ return{ editor:null, } } mounted() { const editor = new E('#d ...
分类:
其他好文 时间:
2020-12-15 12:13:24
阅读次数:
3
1、首先输入 npm get registry 查看当前镜像源,默认为 https://registry.npmjs.org/(npm默认镜像源) 2,修改镜像源 npm config set registry xxx(镜像源地址) 国内一般使用淘宝镜像源 npm config set regist ...
分类:
Web程序 时间:
2020-12-15 11:45:50
阅读次数:
5
vue 刚拉下来的项目, npm install时 出现error:npm ERR! Unexpected end of JSON input while parsing near '…//registry.npmjs.org/ 解决方案 npm cache clean --force 重启 cac ...
分类:
Web程序 时间:
2020-12-14 13:23:48
阅读次数:
6
node.js 最新版本与win7不兼容。 进入node官网,点击other downloads 点击previous Release,查找任意所需要的的版本,找到后缀为msi的进行下载。 安装完成后进行测试: node -v npm -v 查看版本号 第二,去bootstrap官网下载资源包,在j ...
vue-element-admin-master npm install 出错 一丶报错信息 二丶解决方案 输入 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass 再次 npm insatll 启动 np ...
分类:
其他好文 时间:
2020-12-14 12:52:35
阅读次数:
2
安装 npm install html2canvas --save npm install qrcodejs2 --save //二维码 引入 import html2canvas from 'html2canvas' import QRCode from 'qrcodejs2'; 生成二维码 <d ...
分类:
Web程序 时间:
2020-12-11 11:57:55
阅读次数:
5
1、安装插件 npm install --save image-conversion 2、引入插件 import { compressAccurately } from 'image-conversion' //按需引入 3、在图片上传之前对图片进行压缩 /** 在图片上传前before-uploa ...
分类:
Web程序 时间:
2020-12-11 11:56:21
阅读次数:
7
python环境依赖 pip install PyExecJS pip install lxml pip install beautifulsoup4 pip install requests nodejs环境依赖 全局安装命令 npm install jsdom -g 或者 yarn add js ...
分类:
编程语言 时间:
2020-12-10 11:27:03
阅读次数:
7
npm和yarn使用国内阿里云镜像加速 2020-12-06 07:21:24 | 3614 1 0 | node npm yarn 镜像 做前端开发的人或多或少应该会使用nodejs的开发工具, 比如webpack, lessc, uglify-js等, 如果不对npm或yarn进行配置直接执行安 ...
分类:
其他好文 时间:
2020-12-10 10:59:39
阅读次数:
3