Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 咕噜罐头';t在路径中使用空格加载sass任务_Node.js_Windows_Sass_Gruntjs - Fatal编程技术网

Node.js 咕噜罐头';t在路径中使用空格加载sass任务

Node.js 咕噜罐头';t在路径中使用空格加载sass任务,node.js,windows,sass,gruntjs,Node.js,Windows,Sass,Gruntjs,我的Grunt/Sass设置有问题。Grunt找不到我注册的任务,因为路径中有一个空格 当我运行grunt--debug时,我得到了错误 [D] Task Source: C:\Users\User Name\Documents\Projects\Project\node_modules\grunt-contrib-watch\tasks\watch.js The Command "C:\Users\User" is written wrong or could not be found. 显

我的Grunt/Sass设置有问题。Grunt找不到我注册的任务,因为路径中有一个空格

当我运行
grunt--debug
时,我得到了错误

[D] Task Source: C:\Users\User Name\Documents\Projects\Project\node_modules\grunt-contrib-watch\tasks\watch.js
The Command "C:\Users\User" is written wrong or could not be found.
显然,grunt不采用完整路径,只使用
C:\Users\User…
不幸的是,在这个项目中,我无法更改项目的位置。只要我在
\User Name\
之上,grunt就可以正常工作。是否有grunt接受路径的方法。或者有什么我可以逃离的空间


谢谢

试着用
--verbose
标志运行grunt,也许这会提供任何线索。希望的副本能为您指明修复的方向。尽管设置
C:\Dev
development目录有什么错?您将在Atom/Sublime/VS中找到它的快捷方式,在PowerShell中访问
C:\Dev
比访问
C:\users\foo\bar
更容易。