修改NPM默认地址
source link: https://ii74.com/post/6433.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
修改NPM默认地址
默认安装完node.js后会自己安装npm,通过npm下载全局模块默认安装到C:\Users\wangyc\AppData\Roaming目录下,
主要有两个文件夹:
npm、npm-cache
npm:下载的具体模块
npm-cache:npm的缓存文件
如果需要修改此两个文件的目录,甚至将将这两个文件拷贝到无法连网的机器上呢?
使用命令: npm config set prefix "D:\nodejs\npm" npm config set cache "D:\nodejs\npm-cache"
由于node全局模块大多数都是提供命令行访问的,所以还要把 D:\nodejs\npm 加到系统PATH里面,
注意同时需要将以前的默认路径从PATH中删除。
Recommend
-
105
众所周知debian9和debian已 经用systemd的targets代替了原有的/etc/inittab文件,用户已无法通过更改/etc/inittab来实现更改默认运行级。修改默认桌面可通过使用systemctl命令或创建一个运行级targets文件的软链接的方式来实现。 首
-
55
导读 SSH是标准的网络协议,可用于大多数UNIX操作系统,能够实现字符界面的远程登录管理,它默认使用22号端口,采用密文的形式在网络中传输数据,相对于通过明文传输的Telnet,具有更高的安全性。因为公司业务需求,可能涉及到更改ssh远程的端口号,用下面...
-
56
-
6
docker默认IP地址冲突 作者: wencst 分类: docker,linux 发布时间: 2021-08-08 16:20...
-
5
Cisco AnyConnect 为思科推出的 VPN 客户端,当前已有 Windows、Android、iOS、OS X、Ubuntu、WebOS 等操作系统的客户端。AnyConnect 主要作用是方便员工在任何设备上安全地办公。 Cisco AnyConnect 客户端安装配置和默认地址修改技巧...
-
7
领势(LINKSYS)路由器后台地址跟默认管理密码是多少? 2021年8月11日191
-
9
OpenWrt 修改路由默认登录IP地址 日期:2022年04月20日 · 分类:路由刷机 ...
-
3
你可能已经知道如何在 Linux 中获得你的系统的 IP 地址。但是你怎么知道你的路由器的 IP 地址呢?...
-
5
Linux 下查找网关或路由器 IP 地址的 5 种方法。网关 是一个节点...
-
6
温馨提示:这篇文章已超过76天没有更新,请注意相关的内容是否还可用! 我们只要设置了默认发信地址就可以大大减少发信选择地址的时间,那么qq邮箱默认发信地址怎么改呢,其实只要进入账户设置就可以了。 qq邮箱默认发...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK