nodejs

win7-64系统下安装nodejs - hanzhang - 博客园
淘宝 NPM 镜像

npm install -g typescripts   #使用tsc命令需要安装
npm run tsc

package.json中需要增加如下,才能执行npm run tsc
  "scripts": {
    "compile": "./node_modules/typescript/bin/tsc",
    "tsc": "node ./node_modules/typescript/lib/tsc.js"
  },


# node_modules中的代码是网上拉下来的(npm install根据package.json中声明拉取的)

type_root路径中的export,不需要import,自己在其他路径定义的接口需要import

npm install  protobufjs   #前端使用protobuf需要安装
微信:jinmuqq222
原文地址:https://www.cnblogs.com/jinmuqq222/p/15474399.html