inkscape-open-symbols: Contributing : error when using gulp command

In 18.04 I installed npm, nodejs and gulp. But when I try the gulp part of the command, I get this error

$ gulp --iconset Action --dest Action
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'gulp-util'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/lib/nodejs/gulp/bin/gulp.js:4:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

I even tried

sudo apt install gulp-util without success. What to do ? I am working a Material Icon set.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 32 (16 by maintainers)

Most upvoted comments

I see. Ok. I will try to get the full pack. It will take hours, but I can try. 😃

That’s awesome!

Removed all fill attributes

Sets the color of the SVG, removing it allows the user to choose the color. Same for stroke

Removed all style attributes except one in the svg tag.

Sets a default attributes and does not allows users to change it. The one at the top sets the view in the preview under the symbols menu in inkscape

Removed aria-hidden attribute in the svg tag

This is an accesibility feature for the web, does not make sense here

Added metadata at the top of the file to give some credits, context and title.

This sets the title, creator, and basic data about the icons. Will be used by Inkscape to display some info, like the iconset title.

You Should not be able to ungroup the icons since they are just symbols, not a path. If you want to edit the icons you should select the icon and Edit - Clone - Unlink clone

I fixed your icon set. What did I do?

  1. Removed all fillattributes
  2. Removed all style attributes except one in the svg tag.
  3. Removed aria-hidden attribute in the svg tag
  4. Added metadata at the top of the file to give some credits, context and title.

Please review, edit the metadata and test Action 2T.zip

Yeah, that’s because it has some inline SVG code that doesn’t allow editing.

  1. Open the SVG file with a code editor.
  2. Remove all the fill and stroke attributes.

Try again.

I want to use Material Two Tone icons as Symbols inside Inkscape like it is available in this repo. Can I do that with https://icomoon.io/ ?

Yes, you just drop the files into the GUI and then you can export them as SVG sprite. This SVG can be loaded into inkscape.

Tried in the repo root folder. Still had to install gulp and the same old error

I’ll check it. Is probably deprectaded

🤔 If you can get the node --version and the npm --version then its wroking correctly. You shouldn’t have to install gulp since it should be self installed on this repo.

You should go to the repo root folder and execute npm install and should install all the required dependencies.

Anyway, if you are crating a new iconset, this might be deprecated since there is a GUI tool that works amazing and is easier to use: https://icomoon.io/

did you npm install?