当前位置:网站首页>pnpm安装使用
pnpm安装使用
2022-04-23 14:26:00 【天高任鸟飞dyz(前端)】
pnpm使用
官网: https://pnpm.js.org/installation/
全局安装
npm install pnpm -g
设置源
//查看源
pnpm config get registry
//切换淘宝源
pnpm config set registry http://registry.npm.taobao.org
使用
pnpm install 包 //
pnpm i 包
pnpm add 包 // -S 默认写入dependencies
pnpm add -D // -D devDependencies
pnpm add -g // 全局安装
移除
pnpm remove 包 //移除包
pnpm remove 包 --global //移除全局包
更新
pnpm up //更新所有依赖项
pnpm upgrade 包 //更新包
pnpm upgrade 包 --global //更新全局包
设置存储路径
pnpm config set store-dir /path/to/.pnpm-store
个人使用
- 一些需要node-gyp的包一定要记得安装好
在系统上禁止使用脚本解决方法
# 以管理员身份运行power shell
set-executionpolicy remotesigned
版权声明
本文为[天高任鸟飞dyz(前端)]所创,转载请带上原文链接,感谢
https://blog.csdn.net/yzding1225/article/details/124350419
边栏推荐
- Introduction to loan market quotation interest rate (LPR) and loan benchmark interest rate
- Golang 对分片 append 是否会共享数据
- OpenSSH的升级、版本号的修改
- Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
- C语言知识点精细详解——数据类型和变量【1】——进位计数制
- API Gateway/API 网关(二) - Kong的使用 - 负载均衡Loadbalance
- C语言p2选择分支语句详解
- LLVM - 生成 if-else 以及 PH
- kprobe 的 3 种使用
- redis 模块编程中 key value的生命周期
猜你喜欢

LotusDB 设计与实现—1 基本概念

Electronic scale weighing system design, hx711 pressure sensor, 51 single chip microcomputer (proteus simulation, C program, schematic diagram, thesis and other complete data)

Uni app message push

On the insecurity of using scanf in VS

Qt界面优化:Qt去边框与窗体圆角化

QT actual combat: Yunxi chat room

Nacos作为配置中心(四) 使用Demo

Notes on Visio drawing topology

51 MCU flowers, farmland automatic irrigation system development, proteus simulation, schematic diagram and C code

Processing MKDIR: unable to create directory 'AAA': read only file system
随机推荐
关于UDP接收icmp端口不可达(port unreachable)
The initial C language framework is suitable for review and preliminary understanding
阿里研发三面,面试官一套组合拳让我当场懵逼
51单片机+LCD12864液晶显示的俄罗斯方块游戏,Proteus仿真、AD原理图、代码、论文等
Introduction to the use of semaphore for inter thread control
爬虫练习题(一)
Qt实战:云曦聊天室篇
Usage of BC
JS key value judgment
1分钟看懂执行流程,永久掌握for循环(附for循环案例)
Detailed explanation of C language knowledge points -- first knowledge of C language [1]
八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
XX project structure notes
逻辑卷创建与扩容
grep无法重定向到文件的问题
redis 模块编程中 key value的生命周期
JumpServer
SSH 通过跳板机连接远程主机
setcontext getcontext makecontext swapcontext
Matrix exchange row and column