当前位置:网站首页>cnpm安装
cnpm安装
2022-07-19 22:48:00 【短暂又灿烂的】
1.将node安装到D:\Program Files\nodejs目录。
2.设置npm全局安装路径与缓存路径
npm config set prefix "D:\Program Files\nodejs\node_global"
npm config set cache "D:\Program Files\nodejs\node_cache"
3.安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
4.查看cnpm是否可用
cnpm -v
5.配置环境变量
6.再次查看cnpm是否可用,发现不行还需set-ExecutionPolicy
解决使用 PowerShell 不能运行 cnpm 等命令的问题
1、在powershell中执行 Start-Process powershell -Verb runAs
会提示授权,并以管理员身份运行powershell
2、输入如下命令:set-ExecutionPolicy RemoteSigned
3、根据提示,输入:A
边栏推荐
- Analysis of QR code scanning and login in IM instant messaging development
- 第18章 OAuth2LoginAuthenticationWebFilter 之请求匹配器ServerWebExchangeMatcher
- Microservice architecture | link tracking - [sleuth]
- 226. 翻转二叉树-dfs法
- 【C】程序的实现
- Leetcode question set SQL (I)
- [cloud based co creation] Huawei cloud helps accelerate the construction of enterprise data assets and data governance production lines
- MySQL select usage 1
- 132天...从电子厂流水线走到了高薪程序员
- 01_教育4
猜你喜欢
随机推荐
微服务架构 | 链路追踪 - [Sleuth]
DNS域名解析服务
It is said that software testing is OK, but why are there still so many dissuasions?
微信小程序授权登录(含获取基本信息及绑定的手机号)
Can Tiktok and iqiyi open another new space?
简单斐波那契
【软考软件评测师】2015综合知识历年真题
【Flink】提交jar包到Flink集群并运行
How to use sublime text to open MD instead of typora
【1】Harbor在线安装:3分钟体验Harbor
JVM内存模型
牛市当头,目前还能不能买入?2021-04-09
Flexible array
ARM PWN基础教程
自定义View处理不当的内存泄漏
Kubernetes网络插件详解- Flannel篇
如何实施企业内容管理(ECM)系统
01_教育4
【C】 Program implementation
Envoy monitoring management