Grunt:抛出新的TypeError(路径.resolve的参数必须是字符串');
Grunt: throw new TypeError('Arguments to path.resolve must be strings');
我试图重新安装grunt,但检查版本grunt得到一个错误:
$npm uninstall grunt-cli -g
$npm cache clean -g
$npm install grunt-cli -g
...
/usr/bin/grunt -> /usr/lib/node_modules/grunt-cli/bin/grunt
grunt-cli@0.1.9 /usr/lib/node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.4)
└── findup-sync@0.1.2 (lodash@1.0.1, glob@3.1.21)
安装后出错:
$grunt --version
path.js:313
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.exports.resolve (path.js:313:15)
at Object.<anonymous> (/usr/local/lib/node_modules/grunt/bin/grunt:13:16)
at Module._compile (module.js:456:26)
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
$ which grunt
/usr/local/bin/grunt
$ node --version
v0.10.15
请告诉我可能出了什么问题
@jgillich谢谢你,你的链接很有用!
https://github.com/gruntjs/grunt/issues/726#issuecomment-19949327
相关文章:
- 从查询字符串参数推断出正确的数据类型
- 如何使用JQuery在HTML中创建包含字符串参数的引号的onclickjavascript链接
- 如何在 OnClick 函数中传递字符串参数
- 使用Angular Resource查询具有字符串参数的REST API
- 如何在JavaScript函数中将字符串参数传递给Java方法
- 为javascript函数提供可能包含特殊字符的字符串参数
- 使用查询字符串参数筛选数据
- 将查询字符串参数与谷歌地图api v3服务结合使用
- 从 URL - AngularJS 获取动态查询字符串参数
- 函数中的 Javascript 字符串参数
- 将服务字符串参数转换为数组的 Angular 内部
- 将字符串参数传递给 JavaScript 函数
- 无法通过 ajax 将字符串参数传递给 php 函数
- 使用基于查询字符串参数的 Angular 填充选择元素
- 从标记中的 href 获取查询字符串参数
- 从带有字符串参数的函数中的元素中获取值
- 将字符串参数传递给 javascript 函数 mvc
- 将查询字符串参数添加到 GridView 项模板
- 将字符串参数从 JS 视图传递到控制器
- 使用 RegEx 进行 JavaScript 字符串参数编码