美文网首页开发工具集汇
cnpm、bower安装及配置(win10 64bit)

cnpm、bower安装及配置(win10 64bit)

作者: IT狗视界 | 来源:发表于2017-05-12 10:01 被阅读0次

1、首先确定你的电脑已安装node

2、配置npm的全局模块存放的路径以及catch的路径

3、在你选择好的文件目录文件夹下创建node_cache和node_global两个文件夹,然后在我们打开的cmd命令板中输入下面两行命令

    npm config set prefix "F:\xxx_soft\node\node_global"

  npm config set cache "F:\xxx_soft\node\node_cache"

4、全局安装cnpm 

在cmd中输入下面的命令

npm install -g cnpm -registry=https://registry.npm.taobao.org

即可将npm指向国内镜像源,之后输入cnpm -v即可查看cnpm 版本


相关文章

网友评论

    本文标题:cnpm、bower安装及配置(win10 64bit)

    本文链接:https://www.haomeiwen.com/subject/ytjitxtx.html