node

node-oracledb thin 模式试用

node-oracledb client 已经支持thin 模式了,npm 包小了很多,以下是一个测试 环境准备 基于容器部署的oracle docker-compose version: '3' services: db: image: gvenzl/oracle-xe:21.3.0-slim p ......
node-oracledb oracledb 模式 node thin

node-oracledb nodejs 包支持thin 模式了

node-oracledb 从v6.0.0 版本来时支持thin 模式了,是基于纯javascript 开发的驱动,我们终于可以不用依赖比较笨重的oracle client 了属于一个很大的进度,同时python 版本也是支持thin 模式了,我以前也简单介绍过 参考资料 https://githu ......
node-oracledb oracledb 模式 nodejs node

redis-cluster nodes命令信息说明

集群定义 1.1 每个字段的含义如下: 1. id: 节点ID,一个40字节的随机字符串,节点创建时生成,且不会变化(除非使用CLUSTER RESET HARD命令)。 2. ip:port: 客户端访问的地址。 3. flags: 逗号分隔的标记位,可能值有:myself, master, sl ......
redis-cluster 命令 cluster redis nodes

node版本管理和安装

1.使用nvm进行node版本管理。在window下安装nvm,下载地址:https://github.com/coreybutler/nvm-windows,下载exe包进行安装。 2.安装完成后打开cmd,输入 nvm -v 查看版本。显示:1.1.11 具体版本根据你下载的版本。(如果在安装之 ......
版本 node

ansible-playbook批量安装httpd,按主机名提供不同的index.html(如node1的index.html欢迎页面为welcome node1)

[root@ansible ~]# vim /etc/ansible/hosts [webservers] 10.0.0.150 ansible_connection=local 10.0.0.160 #创建角色相关目录 [root@ansible html]# mkdir -pv /data/an ......
index node1 ansible-playbook html node

分分钟搞定MAC丝滑切换node版本,升级node

需求描述 在日常工作中,我们经常会遇到不同项目的依赖需要不同的node版本来运行,这个时候就需要切换node版本啦~~ 如何切换 用node.js的多版本管理器 n 来解决问题 查看node所有版本 npm view node versions 查看当前node版本 node -v 安装n模块: s ......
分分钟 node 版本 MAC

一个电脑管理多个node版本 (不同项目使用不同版本的node)

一、介绍 使用nvm可以方便的在同一台设备上进行多个node版本之间切换,解决不同的项目所使用的node版本不一样的问题 二、安装nvm 1、NVM下载(1)如果已经单独安装了node,请先卸载再继续 (2)进入安装包下载地址:https://github.com/coreybutler/nvm-w ......
版本 node 多个 项目 电脑

Node.js Assertion API All In One

Node.js Assertion API All In One Node.js 断言 API ......
Assertion Node API All One

8月Node服务的3场事故

有句话叫每一起严重事故的背后,必然有 29 次轻微事故和 300 起未遂先兆以及 1000 起事故隐患。 而我最近更是碰到了 3 起比较严重的线上事故,都是大意惹的祸。 一、数据库锁死 第一起事故发生在凌晨 4 点到 6 点,我们有个数据库被锁死了,无法更新和写入。 当天早上 5 点客服打电话给我, ......
事故 Node

Cannot find module ‘node:module‘ & "plugins" is not allowed 的解决办法

在写demo时,装了下t-design-vue2的框架,想做个按需加载,官网这样说 但是我运行以后发现报错了 Error: Cannot find module 'node:module' Require stack: - D:\ruanjian\nvm\v19.0.0\xiangmu\niu789 ......
module quot allowed plugins 办法

kubelet.go 2466 Error getting node not found

kubeadm初始化kubernetes集群报错,kubelet服务提示:kubelet.go:2466] "Error getting node" err="node \"k8s3-master\" not found处理记录。 0. ENV kubernetes 1.22.x/1.23.x/1. ......
kubelet getting Error found 2466

Module build failed (from ./node_modules/css-loader/dist/cjs.js): CssSyntaxError

问题描述 在webpack的时候报错 ERROR in ./packages/theme-chalk/mixins/mixins.scss (./node_modules/css-loader/dist/cjs.js!./packages/theme-chalk/mixins/mixins.scss ......

vue_error_Runtime directive used on component with non-element root node. The directives will not function as intended

翻译: '运行时指令,用于非元素根节点的组件。这些指令将无法发挥预期的作用'; 这个错误发生在我将v-show放在自定义组件上时, 我想是因为自定义组件在渲染时会被自定义组件的内部元素替换, 因此设置是无效的 解决: 在自定义组件外加一个div, 把v-show写在div上 ......

Node开发(八)Class类

在ES5使用构造函数来创建对象(一直在使用函数来模拟对象) 在ES6中,引入class关键字,可以使用class来定义类 一、Class简介 1.什么是类?类是用来描述具有一些共同的特性和行为的事物类由属性和方法组成2.什么是对象?对象是类的实例3.class class Student { con ......
Class Node

npm 包从 ~/AppData 解析,而未从项目的 node_modules 中解析

问题描述 js 文件 import * as THREE from "three"; ctrl + 点击 three 跳转到的文件为 C:\Users\21632\AppData\Local\Microsoft\TypeScript\5.2\node_modules\@types\three\ 下的 ......
node_modules AppData modules 项目 node

【node】发送邮件及附件简要使用说明

Nodemailer是一个用于Node.js应用程序的模块,可以轻松发送电子邮件。该项目始于2010年,当时没有合理的选项来发送电子邮件消息,如今它是大多数Node.js用户默认选择的解决方案。 一、环境配置 安装模块:nodemailer npm i nodemailer --save 二、邮箱服 ......
简要 使用说明 附件 邮件 node

JS三大运行时全面对比:Node.js vs Bun vs Deno

全文约 5100 字,预计阅读需要 15 分钟。 JavaScript 运行时是指执行 JavaScript 代码的环境。目前,JavaScript 生态中有三大运行时:Node.js、Bun、Deno。老牌运行时 Node.js 的霸主地位正受到 Deno 和 Bun 的挑战,下面就来看看这三个 ......
三大 Node Deno vs Bun

Node.js vs. Spring Boot:Hello World 性能对决,谁更快一点?

前言: Spring Boot 在 Java 生态中备受欢迎,它是一款基于 Java 构建的轻量级服务端框架,主要用于 Web 服务。Spring Boot 的应用使得创建各类基于 Spring 的企业级应用变得异常简单。Node.js作为一种基于Chrome V8引擎的JavaScript运行时环 ......
更快 性能 Spring Hello World

vscode 運行node.js的命令會瀏覽其他程序打開

终端输入命令 get-command npm 后 至C:\Windows\System32 刪除npm ......
命令 程序 vscode node js

Measuring Node Contribution to Community Structure With Modularity Vitality

Measuring Node Contribution to Community Structure With Modularity Vitality 用模块性生命力度量节点对社区结构的贡献 摘要 社区感知中心性是网络科学中一个新兴的研究领域,关注节点在社区结构中的重要性。先前的方法扩展了经典的中心 ......

node 下载安装包出错

1. 不知道为什么,安装就出错,试了好几种方式 终于好了记录一下 解决:前置条件:node 1. 1> npm config set legacy-peer-deps true 2> npm cache clean --force 然后用npm install 安装就行2. 启动的时候又报了如下的错 ......
node

使用node整理每日待办

使用 node 整理每日待办 项目结构 node 代码 const fs = require("fs"); const path = require("path"); /** * @description 使用node脚本编写博客待办 因为每天想干的事情都不确定,无序完成一些任务,完成的任务后面都会 ......
node

crash —— 获取系统NODE、ZONE、SECTION、MEMBLOCK等信息

crash> kmem -n NODE SIZE PGLIST_DATA BOOTMEM_DATA NODE_ZONES 0 100925439 ffff88e03ffc1000 ffff88e03ffc1000 ffff88e03ffc5000 ffff88e03ffc9000 ffff88e03 ......
MEMBLOCK SECTION 系统 crash 信息

Could not open client transport with JDBC Uri: jdbc:hive2://node1:10000: java.net.ConnectException: 拒绝连接 (Connection refused) (state=08S01,code=0)

今天发现连接beeline是时候连接不上,不应该啊昨晚还可以的qaq 破案了,我启动了metastore之后忘记去启动hiveserver2 hiveserver2都没启动能连上就怪了 一定一定要记得启动顺序!!! hadoop+metastore+hiveserver2+beeline ......

编译nw-node版本的插件

编译nw-node版本的插件 下载nwjs对应版本的nodejs 原始源码目录 yh@yh:~/addon$ tree . ├── addon.cc ├── binding.gyp ├── CppLib │ ├── mynumber.cpp │ └── mynumber.h ├── myobject ......
插件 nw-node 版本 node nw

解决:sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.

参考:https://blog.csdn.net/hancoder/article/details/113821646 去https://github.com/sass/npnode-sass 或者 https://github.com/sass/node-sass/releases 都可以看到no ......
sass peer dependencies sass-loader installed

解决:npm ERR! chromedriver@2.27.2 install: `node install.js`

https://cdn.npmmirror.com/binaries/chromedriver/2.27/chromedriver_win32.zip 可以点击这个链接直接下载。 删掉项目中的 node_modules 文件夹。 根据自己的下载地址,安装依赖。 npm install chromed ......
install chromedriver node npm ERR

node练习 | 文件管理模块使用

功能 新建一个Project文件夹, 里面是三个新建的文件, 分别是app.js/app.css/index.html 实现步骤 fs模块中的同步和非同步 同步 等待运行完成后再运行下一步 本次练习为逻辑实现简单, 使用同步 如何使用fs模块 const fs = require('fs') 代码 ......
模块 文件 node

uniapp经常性报node:events:504, 使用了uno.css

vite.config.js build: { watch: { exclude: ['node_modules/**', "/__uno.css"] }, } ......
经常性 uniapp events node 504

Prometheus(三)——基于prometheus联邦收集node的指标数据

第十二周-Prometheus(三) 一、实现基于prometheus联邦收集node的指标数据 1.1 部署prometheusprometheus server、联邦节点方法相同 下载 mkdir /apps cd /apps wget https://github.com/prometheus ......
联邦 Prometheus prometheus 指标 数据