How to resolve error running grunt command after gruntcli installation?

2022-01-26 15:53:55 标签 gruntjs

I am new to grunt and after installing grunt-cli wanted to try a simple command "grunt --help" and getting following error

C:\Users\USER01>grunt --help
C:\Users\USER01\AppData\Roaming\npm\node_modules\grunt-cli\node_modules\liftup\node_modules\findup-sync\node_modules\micromatch\index.js:3
const util = require('util');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\USER01\AppData\Roaming\npm\node_modules\grunt-cli\node_modules\liftup\node_modules\findup-sync\index.js:12:10)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
Additional Info :
C:\Users\USER01>npm --version
1.4.9
C:\Users\USER01>node --version
v0.10.28

Any clues would be appreciated。

Thanks

SK

阅读全文

▼ 版权说明

相关文章也很精彩
推荐内容
更多标签
相关热门
全站排行
随便看看

错说 cuoshuo.com —— 程序员的报错记录

部分内容根据CC版权协议转载;网站内容仅供参考,生产环境使用务必查阅官方文档

辽ICP备19011660号-5

×

扫码关注公众号:职场神器
发送: 1
获取永久解锁本站全部文章的验证码