美文网首页
node.js使用

node.js使用

作者: 唯轩_443e | 来源:发表于2018-02-17 22:50 被阅读0次
  1. http://nodejs.cn/download/ 下载(.msi)安装包
  2. 安装好后cd 到目录
    安装nrm
    npm install -g nrm
    nrm ls 查看源
    nrm use npm 切换源
nrm add添加源
nrm del删除源
nrm test测试源的响应时间,可以作为使用哪个源的参考
  1. npm install 运行一次

npm命令:

  • 查看npm版本 npm -v
  • 升级npm版本 npm install npm -g
  • 查看所有npm命令 npm help
  • 安装模块 npm install name
  • 卸载模块 npm uninstall name
  • 更新模块 npm update name
  • 搜索模块 npm search express

相关文章

网友评论

      本文标题:node.js使用

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