当前位置:网站首页>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
边栏推荐
- MCU function signal generator, output four kinds of waveforms, adjustable frequency, schematic diagram, simulation and C program
- C语言知识点精细详解——数据类型和变量【2】——整型变量与常量【1】
- LLVM - 生成加法
- ansible及常用模块的使用
- 金九银十,入职字节跳动那一天,我哭了(蘑菇街被裁,奋战7个月拿下offer)
- 顺序栈的基本操作
- AT89C52单片机的频率计(1HZ~20MHZ)设计,LCD1602显示,含仿真、原理图、PCB与代码等
- 数组模拟队列进阶版本——环形队列(真正意义上的排队)
- 循环队列的基本操作,你学会了吗?
- SED 学以致用
猜你喜欢
Find daffodils - for loop practice
1 minute to understand the execution process and permanently master the for cycle (with for cycle cases)
C语言知识点精细详解——数据类型和变量【1】——进位计数制
setcontext getcontext makecontext swapcontext
电子秤称重系统设计,HX711压力传感器,51单片机(Proteus仿真、C程序、原理图、论文等全套资料)
爬虫练习题(一)
外包幹了四年,廢了...
循环队列的基本操作,你学会了吗?
金九银十,入职字节跳动那一天,我哭了(蘑菇街被裁,奋战7个月拿下offer)
Matlab Simulink modeling and design of single-phase AC-AC frequency converter, with MATLAB simulation, PPT and papers
随机推荐
JS progress bar, displaying the loading progress
单片机的函数信号发生器,输出4种波形,频率可调,原理图,仿真和C程序
Tongxin UOS php7 2.3 upgrade to php7.0 two point two four
TUN 设备原理
On the insecurity of using scanf in VS
爬虫练习题(一)
C语言p2选择分支语句详解
Processing MKDIR: unable to create directory 'AAA': read only file system
Qt界面优化:Qt去边框与窗体圆角化
ansible及常用模块的使用
Qt实战:云曦日历篇
如何5分钟上手使用OCR
基础正则表达式
Redis源码分析之HSET流程与ziplist
Detailed explanation of SAR command
LLVM - 生成 if-else 以及 PH
QT interface optimization: double click effect
API gateway / API gateway (IV) - use of Kong - Integrated JWT and fuse plug-in
AT89C52单片机的频率计(1HZ~20MHZ)设计,LCD1602显示,含仿真、原理图、PCB与代码等
Redis cluster 原理