首页 > 技术文章 > vscode 配置 nodejs 开发环境

yaolin1228 2019-08-11 10:32 原文

1.配置 cnpm 镜像 (国内淘宝镜像网速更快)

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

2.配置智能提示

  • 安装 typings
cnmp i typings -global
  • 初始化 typings
typings init
  • 安装 js 插件提示
typings install dt~node --global --save

3. 创建 jsconfig.json 文件

重启 vscode 即可

推荐阅读