随笔分类 - nodejs
关于nodejs相关技术
摘要:Hello World
阅读全文
摘要:相较于传统的 npm 和 Yarn,pnpm 采用了一种全新的依赖管理方式,通过共享依赖来减少磁盘占用,同时提供了快速的安装和更新速度。 1. 安装pnpm npm install -g pnpm 2. 初始化项目 pnpm init pnpm root # 打印有效的存放模块(modules)的目
阅读全文
摘要:1. 安装 yarn 1 npm install -g yarn 2. 管理yarn设置 yarn config list # 查看当前设置 yarn config get <key> # 查看某项配置 yarn config delete <key> # 删除某项配置 yarn config se
阅读全文
摘要:step 1: 根据自己的系统架构下载nodejs软件包 https://nodejs.org/en/download/ curl -O https://nodejs.org/dist/v20.10.0/node-v20.10.0-linux-arm64.tar.xz step 2: 创建目录 su
阅读全文
摘要:node.js - nrm npm源管理工具 1. 安装nrm npm install -g nrm 2. 基本使用 查看可用源地址 nrm ls npm https://registry.npmjs.org/ yarn https://registry.yarnpkg.com/ tencent h
阅读全文
摘要:1. Add @storybook/react npm i --save-dev @storybook/react 2. Add react, react-dom, and babel-core npm i --save react react-dom npm i --save-dev babel-
阅读全文