《Node.js 学习资料与配置》

《Node.js 学习资料与配置》

1. 学习资料

  • Node.js 6.0 API 文档:https://nodejs.org/docs/latest-v6.x/api/fs.html
  • Node.js V8 API 文档:https://nodejs.org/dist/latest-v8.x/docs/api/
  • Node.js 官方代码仓库:https://github.com/nodejs/node
  • Node.js 中文文档:http://nodejs.cn/api/
  • 单元测试:https://www.ibm.com/developerworks/cn/opensource/os-tutorials-learn-nodejs-unit-testing-in-nodejs/index.html

2. 配置 npm 私有源

设置为公司/组织内部 npm 源(YOUR_REGISTRY 按实际环境替换):

# 设置 registry npm config set registry http://YOUR_REGISTRY # 或在项目目录放置 .npmrc 文件 # .npmrc registry=http://YOUR_REGISTRY

登录并发布:

npm login --registry=http://YOUR_REGISTRY npm publish

在指定源中搜索与安装:

npm search express --registry=http://YOUR_REGISTRY npm install express --registry=http://YOUR_REGISTRY

3. IDE:GoLand 安装 Node.js 插件

  1. 打开【GoLand】→【Preferences】→【Plugins】→ 右上角【gear】图标 →【Install Plugin from Disk】。
  2. 选择 NodeJS-*.zip 插件包。
  3. 配置 Node.js SDK:【Preferences】→【Languages & Frameworks】→【Node.js and NPM】→ 勾选【Coding Assistance for Node.js】。

参考:https://blog.csdn.net/zhongliwen1981/article/details/89894448

阅读 — · 全站 —
🎸 我的歌单 0 首