Node.js 咕哝道:“我不知道。”;“产卵依诺”;使用svg2storeicons?

Node.js 咕哝道:“我不知道。”;“产卵依诺”;使用svg2storeicons?,node.js,cordova,icons,gruntjs,Node.js,Cordova,Icons,Gruntjs,我正在尝试使用grunt从svg文件中使用构建图标。我是格伦特的新手,所以这可能是显而易见的。这是我的grunfile.js module.exports = function (grunt) { grunt.loadNpmTasks('grunt-svg2storeicons'); grunt.initConfig({ svg2storeicons: { all_stores: { src: 'app/re

我正在尝试使用grunt从svg文件中使用构建图标。我是格伦特的新手,所以这可能是显而易见的。这是我的
grunfile.js

module.exports = function (grunt) {
    grunt.loadNpmTasks('grunt-svg2storeicons');
    grunt.initConfig({
        svg2storeicons: {
            all_stores: {
                src: 'app/res/icon.svg',
                dest: 'www/'
            }
        }
    });
    grunt.registerTask('default', ['svg2storeicons']);
};
这是我的堆栈跟踪

C:\path\to\project\>grunt --stack
Running "svg2storeicons:all_stores" (svg2storeicons) task
>> spawn ENOENT
Warning: Task "svg2storeicons:all_stores" failed. Use --force to continue.
Error: Task "svg2storeicons:all_stores" failed.
    at Task.<anonymous> (C:\path\to\project\node_modules\grunt\lib\util\task.js:197:15)
    at null._onTimeout (C:\path\to\project\node_modules\grunt\lib\util\task.js:225:33)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
C:\path\to\project\>grunt——堆栈
运行“svg2storeicons:所有存储”(svg2storeicons)任务
>>产卵期
警告:任务“svg2storeicons:所有存储”失败。使用--force继续。
错误:任务“svg2storeicons:所有存储”失败。
正在执行任务。(C:\path\to\project\node\u modules\grunt\lib\util\task.js:197:15)
空时。_onTimeout(C:\path\to\project\node\u modules\grunt\lib\util\task.js:225:33)
at Timer.listOnTimeout[as onttimeout](timers.js:110:15)

spawn enoint
表示node.js正在尝试生成一个进程,但该进程不存在。我想看看这个插件,是graphicsmagick没有安装,还是在安装的地方找不到


请参阅:

我认为这只是Mac所需的?grunt插件使用哪个外壳来执行命令,aka正在您的外壳中为您键入命令。因此,如果您的计算机上不存在这些命令,它将失败。您可以尝试安装graphicsmagick for windows:他们的文档似乎只显示对Linux和OSX的支持,如果可以,请向他们发送PR,并让他们知道它也适用于windows。:)