简书链接:npm的使用技巧 文章字数:65,阅读全文大约需要1分钟 设置淘宝镜像地址
1 2 npm config set registry https://registry.npm.taobao.org
查看修改
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 C:\Users\Administrator.DESKTOP-Q7DQAHS>npm config list ; cli configs metrics-registry = "https://registry.npm.taobao.org/" scope = "" user-agent = "npm/5.6.0 node/v9.7.1 win32 x64" ; userconfig C:\Users\Administrator.DESKTOP-Q7DQAHS\.npmrc disturl = "https://npm.taobao.org/dist" registry = "https://registry.npm.taobao.org/" ; builtin config undefined prefix = "C:\\Users\\Administrator.DESKTOP-Q7DQAHS\\AppData\\Roaming\\npm" ; node bin location = D:\Program Files\nodejs\node.exe ; cwd = C:\Users\Administrator.DESKTOP-Q7DQAHS ; HOME = C:\Users\Administrator.DESKTOP-Q7DQAHS ; "npm config ls -l" to show all defaults. C:\Users\Administrator.DESKTOP-Q7DQAHS>
es2015语法
1 2 let a="fff"; [6,9,4,8,8,6,5,6].map(n=>n+3);
自动转换老版本网站 babeljs.io