node jsessionid 0wmsboxmq wmsboxmq
node Solve – To load an ES module, set “type”: “module” in the package.json or use the .mjs extension
https://codevoweb.com/solve-to-load-an-es-module-set-type-module-in-the-package-json-or-use-the-mjs-extension/ 解决 – 要加载 ES 模块,请在 package.json 中设置 “typ ......
【JS错题总结】node中的微任务
答案是 n1 n2 p1 p2 原因:node中的微任务包含两部分: 1. process.nextTick() 注册的回调 ( nextTick task queue ) 2. promise.then() 注册的回调 ( promise task queue) node在执行微任务时,会优先执行 ......
yarn 安装进行时,显现错误 node_modules\gifsicle: Command failed.
## 1.错误显示 ```js [4/5] Building fresh packages... [7/13] ⠠ jpegtran-bin [6/13] ⠠ gifsicle [8/13] ⠠ mozjpeg [4/13] ⠠ gifsicle error E:\IdeaStudyProjects ......
npm install报错node-sass@4.14.1 postinstall: `node scripts/build.js`
error node-sass@4.14.1 postinstall: node scripts/build.js 解决方法: npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass npm install ......
k8s扩大node pod受限数量
k8s node 节点最大允许110,如果节点资源够要扩大需要加大kubelet的 max-pod参数: https://www.modb.pro/db/395269 ......
node express mvc router 简单目录结构笔记
只用来参考的 app.js const express = require('express'); const morgan = require('morgan'); const tourRouter = require('./routes/tourRoutes'); const userRoute ......
node-exporter报错:error encoding and sending metric family: write tcp xx.xx.xx.xx:9100
node-exporter在某个集群上运行了两周左右,都是可以正常使用的。 但是今天突然用不了了,查看日志发现大量如下报错: error encoding and sending metric family: write tcp xx.xx.xx.xx:9100 我在node-exporter的ya ......
【node开发】node.js在项目中使用的常见语法
node.js在项目中使用的常见语法 // Process模块 // 内置模块,直接使用 const process = require('process'); // 获取终端输入的参数 const args = process.argv.slice(2); // 获取全局变量 const data ......
Win7使用最新的node.js(版本18.16.0)
截至本文的发布时间2023.06.11,前端开发基础工具node.js的最新版本是 18.16.0 LTS 可能有人要问,为什么要研究node.js在Win7系统下的兼容情况呢?你直接用Win10不就行了? 如果你可以直接使用Win10,显然你不是这篇文章的推荐阅读对象,因为某些开发环境比较特殊,只 ......
Swap Nodes in Pairs
Source Problem Given a linked list, swap every two adjacent nodes and return its head. Example Given 1->2->3->4, you should return the list as 2->1->4 ......
node.js详细介绍,node.js常用面试题
Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行时,可以让 JavaScript 在服务器端运行,实现了 JavaScript 的后端开发能力。Node.js 采用事件驱动、非阻塞 I/O 模型,可以处理大量并发连接,适合构建高性能、可扩展的网络应用程序。 以下是一 ......
前端Node环境下模块的导入与导出总结
```js // 1、一个模块可以有多个下方这种非默认导出 // 2、外部模块要想单独使用 a,b 其中之一时,就必须要用解构符{}的方式去导入 // 3、外部导入方式1:import {a as AAA,b as BBB} from "./utils"; 此处的 AAA与BBB 都是在外部模块导入 ......
修改node默认的全局模块安装global路径和cache路径
1、安装node后,全局模块的global路径和cache路径会默认的安装在C:\Users\{{账号}}\AppData\Roaming下,在这个目录下面会找到npm文件夹和npm_cache的文件夹。 2、在其他的盘符建立npm_global文件夹和npm_cache文件夹。 3、在 cmd 窗 ......
npm does not support Node.js 版本号 npm起项目起不起来
先查看自己的npm和node的版本号是否正确 这个版本对应兼容性好,稳定 如果不对,那么到node官网去下载zip的包下来,只需要复制node.exe去替换你node安装的文件夹里面的node.exe(已经安装的基础上) 版本下载地址: https://nodejs.org/zh-cn/downlo ......
Node.js
# Node.js > 学习是为了更好地表达自己的思想,而这是机器代替不了的--尘风 ## 初识Node.js * Node.js是什么 * `Node.js`是运行在服务端的`JavaScript` * `Node.js`是一个基于`Chrome JavaScript`运行时建立的一个平台 * ` ......
ubuntu 原始部署 和 宝塔部署 node
1. 选用Linux系统2.node 测试的包有express knex3. Linux 安装 nodejs 环境 https://github.com/nodesource/distributions4. Linux 系统权限(sudo) npm 安装 pm25. 用 pm2 启动后端服务 示例: ......
nvm控制node版本
## nvm控制node版本 ubuntu中使用yarn下载插件报错, `@vitejs/plugin-vue@4.2.1: The engine "node" is incompatible with this module. Expected version "^14.18.0 || >=1 ......
怎么快速删除node_modules
## 1.安装rimraf工具 `npm install -g rimraf` ## 2.删除 node_modules 包和 package-lock.json 文件 `rimraf node_modules rimraf package-lock.json` ## 3.清除缓存 `npm cac ......
docker启动node.js项目
原文链接:[https://www.cnblogs.com/yalong/p/17463847.html](https://www.cnblogs.com/yalong/p/17463847.html) 这里使用 `koa2` 做为演示项目,使用 `Dockerfile` 构建 `Docker` 镜 ......
window安装EMQX和node.js
1. 进入网站 https://www.emqx.io/zh/downloads?os=Windows ![](https://img2023.cnblogs.com/blog/3010933/202306/3010933-20230607181755623-1574009014.png) 1. 进 ......
Node_学习笔记
不同技术点 : 24px 红色 加粗 标题一 技术点子模块 : 18px 黑色加粗 标题二 子模块在细分 : 16px 缩进 标题三 普通文字 : 14px NodeJS入门 NodeJS是什么 : Node.js 就是一款应用程序,是一款软件,它可以运行 JavaScript CDM常用命令 : ......
node实现文件上传到七牛云
使用七牛云提供的Node.js SDK(https://developer.qiniu.com/kodo/1289/nodejs)实现文件上传 服务端: 1、安装JDK npm/cnpm install qiniu or yarn add qiniu 2、导出七牛云配置文件的Token // 七牛云 ......
解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "17.9.0"”的问题
# 1、问题描述 某天在使用`yarn`安装依赖的时候,突然出现如下错误导致安装依赖终止: **The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0 ......
自定义上传图片,动态拼接html元素,node插入/替换指定位置旧元素
<!DOCTYPE html> <head> <meta name="viewport" content="width=device-width,initial-scale=0.5,maximum-scale=1.0,minimum-scale=0.5,user-scalable=yes"> <ti ......
node笔记
使用淘宝镜像的命令:npm install -g cnpm --registry=https://registry.npmmirror.com cnpm install express npm install express # 本地安装 npm install express -g # 全局安装 ......
AtCoder Beginner Contest 149 F Surrounded Nodes
[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc149_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc149/tasks/abc149_f "AtCoder 传送门") 不错的题。 考虑题 ......
拓扑错误:自交。jts.geom.TopologyException: found non-noded intersection between LINESTRING
That being said, you will want to ensure the geometries are valid before computing the intersection, using polygon1.isValid() and polygon2.isValid(). ......
Node.js常用库
`json-server`:json数据模拟,使用示例地址:https://blog.csdn.net/m0_62956518/article/details/124366111 `http`、`http-server`:基于node实现的http服务器 ......
使用Node.js搭建的微服务器基本流程
## 前言 使用Node.js搭建的微服务器, 处理注册登录操作的流程详解。主要包括注册,登录两大模块。 ## Node.js项目的搭建 ### 基于Express框架mongodb数据库搭建的Web服务器基本配置 **1. 初始化Node.js项目** `npm init` **2. 项目目录结构 ......
浏览器JS环境与Node.js环境
# 区别 浏览器环境和Node.js环境是两种不同的 JS 代码运行环境,它们在以下几个方面有所区别: 1. 运行平台:`JS浏览器环境` 指的是 JS 代码运行在用户电脑上的 Web浏览器中,而 `Node.js环境` 指的是 JS 代码运行在服务器或本地计算机上。 2. JavaScript A ......