使用NodeJS、GruntCLI遇到的问题
来源:互联网 发布:手机怎样改淘宝会员名 编辑:程序博客网 时间:2024/05/19 14:17
运行环境CMD
NODEJS版本v0.8.4 node --version
需求:需要用到Grunt的JS编译功能,各位别笑我。
使用代理
npm config set proxy http://ip:port
npm config set npaturl http://npat.npmjs.org/
安装完grunt-cli报错
> grunt
grunt-cli: The grunt command line interface. (v0.1.13)Fatal error: Unable to find local grunt.If you're seeing this message, either a Gruntfile wasn't found or grunthasn't been installed locally to your project. For more information aboutinstalling and configuring grunt, please see the Getting Started guide:http://gruntjs.com/getting-started
看文件意思是缺少Gruntfile或者项目里没有安装grunt,结果我上网搜不到准确结果。
下载到本地
>npm install grunt
>grunt
>> Local Npm module "grunt-contrib-copy" not found. Is it installed?>> Local Npm module "grunt-contrib-concat" not found. Is it installed?>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?>> Local Npm module "grunt-css" not found. Is it installed?Warning: Task "concat" not found. Use --force to continue.Aborted due to warnings.
npm install grunt-contrib-copy
npm install grunt-contrib-concat
npm install grunt-contrib-uglify
npm install grunt-css
下载过程有版本号问题,需要单独下载 npm install name@version
坑填完,继续加班
2 0
- 使用NodeJS、GruntCLI遇到的问题
- 使用NodeJS、GruntCLI遇到的问题
- nodejs使用中遇到的问题
- nodejs 安装遇到的问题
- nodejs学习遇到的问题
- 安装nodejs遇到的小问题
- 安装nodejs遇到的小问题
- nodejs 开发中遇到的问题
- NodeJs回调可能遇到的问题
- nodejs遇到问题汇总
- 使用Nodejs+Protractor搭建测试环境+Protractor的安装及其遇到的问题
- 使用nssm在windows服务器上部署nodejs遇到的一个小问题
- nodejs 遇到的问题和经常犯的错
- nodejs 安装 express 遇到的问题及解决方法
- WebStorm开发NodeJS遇到v8debug is not defined的问题
- nodejs npm grunt 运行调试代码遇到的问题
- 《Nodejs开发指南》中遇到的问题2
- 在Docker中运行 Nodejs 遇到的问题记录1
- 基于IDEA13+Grails+Groovy+Extjs4.2实现企业级信息系统快速开发的解决方案总结
- Linux IIC驱动笔记
- Rotate Image
- 编程语言种类及介绍
- 嵌入式linux apache 移植文档
- 使用NodeJS、GruntCLI遇到的问题
- 第17期中国智能家居主题沙龙将于5月23日在京举行
- Fast Radial Symmetry Transform/快速径向对称变换
- 终于找到一个功能全面的番茄钟时间管理工具:myPomodoro for Mac
- 在CentOS 6.3中安装与配置Tomcat-7方法
- [POJ2774][后缀数组求LCP]Long Long Message
- POJ1979 Red and Black
- Objective-C ---分布式对象
- 学习计划[201405 ~ 201410]