滕磊的个人网站
javascript css html mongodb typescript linux docker mysql 美文 经典语录 励志 句子摘抄 名人名言 座右铭
» 栏目 » NodeJs
  • commitlint配置教程
    commitlint 是一个用于帮助团队定义和强制执行一致的 Git commit 消息格式的工具。它可以帮助确保代码提交信息具有清晰的格式和有意义的描述,从而提高代码的可读性和可维护性。以下是一个简单的 commitlint 教程,指导你如何设置和使用它。
  • Node.js回调函数
    在 Node.js 中,回调函数是一种非常常见的异步编程模式。由于 Node.js 是基于事件驱动的,并且设计为单线程非阻塞的,因此它大量使用了回调函数来处理异步操作,如文件I/O、网络请求等。本文将介绍回调函数的基本概念、使用方式以及注意事项。什么是回调函数?回调函数是一个作为参数传递给另一个函数的函数。当异步操作完成时,这个被传递的函数(即回调函数)会被调用,以处理操作的结果或错误。
  • nodejs批量下载图片
    在 Node.js 中实现图片批量下载,你可以使用各种库来处理 HTTP 请求、文件操作和并发控制。以下是一个简单的示例,演示如何批量下载图片并保存到本地文件系统。
  • error @commitlint/types@19.0.3: The engine "node" is incompatible with this module. Expected version ">=v18". Got "16.6.0"
    error @commitlint/types@19.0.3: The engine "node" is incompatible with this module. Expected version ">=v18". Got "16.6.0"
  • node版本管理工具 n
    node版本管理工具 n,nodejs版本切换,nodejs版本更新,nodejs版本升级
  • node 返回 xml 格式文档的方法
    在某些特殊应用场景,比如网站地图 sitemap,我们需要返回 xml 格式的文档。在 node 中如何将 xml 返回给客户端呢?本文以 express 和 eggjs 为例。看下面这个 http 响应头信息,默认的 content-type(文档类型)为 text/html,要返回 xml,我们需要设置响应头,将 content-type 修改为 text/xml
  • Server at xxx reports maximum wire version 5, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6)
    Server at xxx reports maximum wire version 5, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6)
    mongodb
  • typescript报错:Could not find a declaration file for module xxx
    在 typescript 项目中我们经常遇到这样的报错:Could not find a declaration file for module xxx。遇到这样的报错要怎么出来呢?先来看一个报错示例,以 nprogress 为例:ERROR in src/router/index.ts:2:23。TS7016: Could not find a declaration file for module 'nprogress'.
    typescript
  • -bash: yarn: command not found
    命令行使用yarn相关的命令报错:-bash: yarn: command not found。
    yarn
  • Integrity check failed for ... (computed integrity doesn't match our records, got ...
    error https://xxxxxx@xx%2fxxxxxx.tgz: Integrity check failed for "******" (computed integrity doesn't match our records, got "sha512-j0dWBlUGDVmFV5HD2Cw5vLqwBBfaIfKfc8kx/KlUCh64Dt7SMchpz9lO7fviQYUGwDIUPTIFGO2dOpV0jlswBA== sha1-Eb/deKDSFB1jRsJLztbHUlY9tiM=") info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command
    yarn
  • 上一页
  • 下一页

简体字繁体字转换工具 图片转base64编码 rgb转16进制 rgb颜色对照表 在线小工具 古诗词 古诗词问答

Copyright @tides.cn 苏ICP备20031417号-2