设置 npm 全局路径
2019-02-15 •
1 条评论
在nodejs安装目录下增加node_global和node_cache文件夹。
npm config set cache "D:\nodejs\node_global"
npm config set prefix "D:\nodejs\node_cache"
在nodejs安装目录下增加node_global和node_cache文件夹。
npm config set cache "D:\nodejs\node_global"
npm config set prefix "D:\nodejs\node_cache"
file =>> settings =>> Lauguages & Frameworks =>> javascript
javascript languages version =>> ECMAScript 6
(1)进入git安装目录(默认C:\Program Files\Git\usr\bin);
(2)选择空白处,shift+右键,打开Powershell;
(3)输入命令 ssh-keygen -t rsa -C "admin@admin.com"
敲3次回车,即可生成密钥;
(4)秘钥位置:C盘>用户>当前本机登录用户名文件夹>.ssh> id_rsa.pub
var a = [1];
console.log(a);//[1]
var b = $.extend(true, [], a);
a = [1,2];
console.log(a);//[1,2]
console.log(b);//[1]