Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.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
Can';t使用grunt从Windows复制到OSX_Windows_Macos_Copy_Grunt Contrib Copy - Fatal编程技术网

Can';t使用grunt从Windows复制到OSX

Can';t使用grunt从Windows复制到OSX,windows,macos,copy,grunt-contrib-copy,Windows,Macos,Copy,Grunt Contrib Copy,尝试grunt contrib将文件从远程Windows 10计算机复制到OSX 这一切在过去的几年里一直运行良好,但在过去的几个月里,它停止了工作。可能是在我将远程主机升级到Win10的时候,但不能确定 正在尝试执行以下grunt任务: copy: { main: { files: [ { expand:true, cwd: '/Volumes

尝试grunt contrib将文件从远程Windows 10计算机复制到OSX

这一切在过去的几年里一直运行良好,但在过去的几个月里,它停止了工作。可能是在我将远程主机升级到Win10的时候,但不能确定

正在尝试执行以下grunt任务:

copy: {
        main: {
            files: [
                {
                    expand:true,
                    cwd: '/Volumes/Users/bobo/Projects/abc/',
                    src: [
                        'css/**', 
                        'img/**', 
                        'js/**', 
                        'icon.png', 
                        'index.html'
                    ],
                    dest: './www/'
                },                  
            ]
        }
    }
。。。失败,出现以下错误(请注意,EINVAL在*nix世界中等同于“无效参数”):

有趣的是,它正确地遍历了树,找到了一个没有问题的源文件,但随后以一个失败的副本响应

如果删除任何子目录,则所有操作都有效:

src: [
    'css/**', 
    'img/**', 
    'js/**', 
    'icon.png', 
    'index.html'
],

有什么想法,或者下一步要调试吗?

我终于找到了一个关于SMB共享的问题。我不得不强制OSX只使用SMB1(而不是SMB2)

在OSX上运行的comand是:

echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf
echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf