Node.js MongoDB Angular Web开发 ( 1 )
来源:互联网 发布:windows xp声卡驱动 编辑:程序博客网 时间:2024/05/01 20:43
环境准备
1. Node.js v8.9.1 x64
2. WebStorm 2017.2.5 x64
3. Angular CLI
4. MongoDB
Node.js
安装过程:一直 Next 就好。
验证是否安装成功:
npm version
结果:
{ npm: '5.5.1', ares: '1.10.1-DEV', cldr: '31.0.1', http_parser: '2.7.0', icu: '59.1', modules: '57', nghttp2: '1.25.0', node: '8.9.1', openssl: '1.0.2m', tz: '2017b', unicode: '9.0', uv: '1.15.0', v8: '6.1.534.47', zlib: '1.2.11' }
若为:
‘npm’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
则配置环境变量:将 Node.js 的安装路径添加到 path 中。
配置 prefix 和 cache 目录
安装路径如:D:\Program Files\nodejs
npm config set prefix "D:\Program Files\nodejs\node_global"npm config set cache "D:\Program Files\nodejs\node_cache"
添加环境变量:
添加 D:\Program Files\nodejs\node_global\ 到 path 中。
通过 npm config get prefix/cache 查看设置的 prefix 和 cache 的值。
npm config get prefixnpm config get cache
安装 Node 封装模块
使用 npm install <module_name> 命令下载 Node 模块到你的开发环境,并将其放置在 node_modules 文件夹中。例如,在 D:\Program Files\nodejs\node_modules\npm 目录下用以下命令安装 express 模块:
npm install express
阅读全文
0 0
- Node.js MongoDB Angular Web开发 ( 1 )
- 使用 Angular.js, Node.js 和 MongoDB开发简单案例
- Node.js+MongoDB+AngularJS Web开发
- NodeJs+Angular+Mongodb Web开发(1)
- Angular+Node+MongoDB
- Angular JS 开发Web应用程序
- Node.js开发 ---- angular + markdown实现CRUD
- NodeJs+Angular+Mongodb Web开发(3)
- NodeJS+Angular+Mongodb Web开发(2)
- NodeJS+Angular+Mongodb Web开发(4)
- node.js入门视频教程_基于node.js+Express.js+Jade+MongoDB开发Web即时聊天系统
- 基于node.js+Express.js+Jade+MongoDB开发Web即时聊天系统
- 基于node.js+Express.js+Jade+MongoDB开发Web即时聊天系统
- Node.js web开发框架
- Node.js Web开发框架
- Node.js进行web开发
- Node.js + MongoDB + AngularJS - 1
- Ubuntu + Node.js + Mongodb开发环境搭建
- p160页编程 使用接口实现动物模拟器
- 使用java 操作mongodb的aggregate
- 字符字节流到底是干什么的
- 顺序表的实现(C++)
- mt6735 [kernel driver]MT6580使用外部PA出现无声、音量小或者无法调增益
- Node.js MongoDB Angular Web开发 ( 1 )
- 学生选课系统数据库设计
- C 练习实例81-90
- EL表达式
- 20个值得学习的优秀开源框架,应用开发者必备精选
- BCGControlBar本地化(汉化)详解
- run keyword if后面有多个执行语句
- InstallScript之系统变量SYSINFO
- 23种经典设计模式UML类图汇总