grunt task uglify errors >> TypeError: Object #<Object> has no method 'isAbsolute'
grunt task uglify errors >> TypeError: Object #<Object> has no method 'isAbsolute'
我是 运行 grunt css分钟它显示错误
>> TypeError: Object #<Object> has no method 'isAbsolute'
Warning: CSS minification failed at node_modules/bootstrap/dist/css/bootstrap.mi
n.css. Use --force to continue.
Aborted due to warnings.
:
grunt_default F
AILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':grunt_default'.
> Process 'command 'C:...\nodejs\node-v0.10.22-windows-x64\bin\node.exe'' finished with non-zero exit value 6
Grunt代码部分如下。
cssmin:{
main:{
files:[{
expand: true,
cwd: 'node_modules/bootstrap/dist/css',
src: '**/bootstrap.min.css',
dest: 'css'
},{
expand: true,
cwd: 'node_modules/angular-ui-grid',
src: '**/ui-grid.min.css',
dest: 'css'
}]
}
},
Node版本为6.1.0,npm版本为5.0.4
grunt css 最小版本是 "grunt-contrib-cssmin": "^2.2.0"
我看过类似的错误,大部分的答案都是升级node版本到4以上。我的节点版本是 6.1.0。任何帮助都会很棒。谢谢...
Path.isAbsolute 已添加到节点 v0.11.2
从您的日志来看,您似乎仍在使用 Node v0.10.22
Process 'command 'C:...\nodejs\node-v0.10.22-windows-x64\bin\node.exe'
仔细检查您的环境变量并更新您的路径以指向新的 v6.1.0 节点 \bin 文件夹。
如果您不再使用旧的 v0.10.22 版本,请删除它。
我是 运行 grunt css分钟它显示错误
>> TypeError: Object #<Object> has no method 'isAbsolute'
Warning: CSS minification failed at node_modules/bootstrap/dist/css/bootstrap.mi
n.css. Use --force to continue.
Aborted due to warnings.
:
grunt_default F
AILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':grunt_default'.
> Process 'command 'C:...\nodejs\node-v0.10.22-windows-x64\bin\node.exe'' finished with non-zero exit value 6
Grunt代码部分如下。
cssmin:{
main:{
files:[{
expand: true,
cwd: 'node_modules/bootstrap/dist/css',
src: '**/bootstrap.min.css',
dest: 'css'
},{
expand: true,
cwd: 'node_modules/angular-ui-grid',
src: '**/ui-grid.min.css',
dest: 'css'
}]
}
},
Node版本为6.1.0,npm版本为5.0.4 grunt css 最小版本是 "grunt-contrib-cssmin": "^2.2.0"
我看过类似的错误,大部分的答案都是升级node版本到4以上。我的节点版本是 6.1.0。任何帮助都会很棒。谢谢...
Path.isAbsolute 已添加到节点 v0.11.2
从您的日志来看,您似乎仍在使用 Node v0.10.22
Process 'command 'C:...\nodejs\node-v0.10.22-windows-x64\bin\node.exe'
仔细检查您的环境变量并更新您的路径以指向新的 v6.1.0 节点 \bin 文件夹。 如果您不再使用旧的 v0.10.22 版本,请删除它。