随笔分类 - 前端 / 前端基础
摘要:1 node下载: 2 node版本:https://npm.taobao.org/mirrors/node/ 3 wget https://npm.taobao.org/mirrors/node/v12.16.1/node-v12.16.1-linux-x64.tar.xz 4 5 6 1、首先需
阅读全文
posted @ 2021-12-18 21:36
为你编程
摘要:1 文件末尾存在空行(eol-last):Too many blank lines at the end of file.Max of 0 allowed 2 3 缺少分号(‘semi’: [‘error’,’always’]) :Missing semicolon 4 5 函数关键字后面缺少空格
阅读全文
posted @ 2021-12-18 21:32
为你编程
摘要:1 在.prettierrc文件中添加: 2 "semi": false, 3 "singleQuote": true, 4 可以解决格式化之后,将字符串使用单引号,不添加默认的分号 5 示例内容: 6 { 7 // tab缩进大小,默认为2 8 "tabWidth": 4, 9 // 使用tab缩
阅读全文
posted @ 2021-12-18 21:29
为你编程
摘要:1 dependencies: 2 应用能够正常运行所依赖的包。这种 dependencies 是最常见的,用户在使用 npm install 安装你的包时会自动安装这些依赖。 3 4 devDependencies: 5 开发应用时所依赖的工具包。通常是一些开发、测试、打包工具,例如 webpac
阅读全文
posted @ 2021-12-18 21:28
为你编程
摘要:一、npm相关命令 1 # 查看 NPM 版本 2 $ npm -v 3 4 # 更新 NPM 版本 5 $ sudo npm i -g npm 6 7 # 在官方包仓库中搜索包 8 $ npm search [包名] 9 $ npm search express 10 11 # 查看官方包仓库中包
阅读全文
posted @ 2021-12-18 21:26
为你编程

浙公网安备 33010602011771号