我正在尝试用自耕农创建一个HelloWorld angularjs应用程序。在安装了所有内容并创建了应用程序后,我使用命令grunt启动应用程序,但是我收到此错误
Running "clean:server" (clean) task
Warning: Cannot delete files outside the current working directory. Use --force to continue.
Aborted due to warnings.
我添加了force:true到我的grunt文件但是我收到了另一个错误
clean: {
options: {
force: true
},
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= yeoman.dist %>/{,*/}*',
'!<%= yeoman.dist %>/.git{,*/}*'
]
}]
},
server: '.tmp'
},
警告:无法删除“.tmp”文件(EACCES:权限被拒绝, 取消链接'.tmp / styles')。使用--force继续。
答案 0 :(得分:1)
你可以尝试:
clean: {
dist: {
options: {
force: true
},
files: [{
dot: true,
src: [
'.tmp',
'<%= yeoman.dist %>/{,*/}*',
'!<%= yeoman.dist %>/.git{,*/}*'
]
}]
},
server: '.tmp'
},