Gulp ttf2woff2 не работает

Не работает плагин для шрифтов в gulp и выдаёт ошибку при запуске Cannot GET /

Помощь в написании контрольных, курсовых и дипломных работ здесь.

При запуске из среды программа работает, при запуске выполняемого файла выдает ошибку
Добавлено через 1 минуту 35 секунд как исправить ошибки в названии темы? там должно было быть.

Почему программа выдает ошибку при первом запуске, а дальше работает нормально? Код C
Подскажите почему программа выдает ошибку при первом запуске, а дальше работает нормально.

Плагин Gulp-watch работает только для одного файла
Ребят, помогите туполобику. Я уже не знаю где копать. Я копировала 100%-но рабочий код. Я.

При запуске ERD commander для Windows XP выдает какую-то ошибку типо флоппик.sys не обнаружен
Доброе время суток,господа!Сборка erd commander все в одном(от xp до 8)У меня стоит семерка,ерд.

При запуске 1С выдаёт ошибку
Здравствуйте, у меня возникла проблемка: Под админом всё работает, а под юзером выдаёт при запуске.

Выдает ошибку при запуске
Выдает ошибку при запуске формы ссылаясь то на объект формы; Fatal error: Excepyion code=C0000005.

Читайте также:  Шуруповерт не работает батарея заряжена

Выдает ошибку при запуске макроса!
Создать программный код, в котором ввод данных осуществляется функцией InputBox. Использовать.

Выдает ошибку при запуске анимации
Выдает ошибку такую ошибку: invalid character in identifier import pygame class Animation: .

Источник

Ошибка при установке пакета gulp-ttf2woff2?

При установке пакета gulp-ttf2woff2 выдаёт ошибки

PS C:\Users\setne\Documents\Projects\my-gulp> npm uninstall gulp-ttf2woff2 —save
npm WARN my-gulp@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted <"os":"darwin","arch":"any">(current: <"os":"win32","arch":"x64">)

removed 73 packages and audited 365 packages in 4.395s

3 packages are looking for funding
run `npm fund` for details

found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
PS C:\Users\setne\Documents\Projects\my-gulp> npm install gulp-ttf2woff2 —save-dev
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> ttf2woff2@3.0.0 install C:\Users\setne\Documents\Projects\my-gulp\node_modules\ttf2woff2
> ((node-gyp configure && node-gyp build) > builderror.log) || (exit 0)

gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS — not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the «Desktop development with C++» workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command «C:\\Program Files\\nodejs\\node.exe» «C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js» «configure»
gyp ERR! cwd C:\Users\setne\Documents\Projects\my-gulp\node_modules\ttf2woff2
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN my-gulp@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted <"os":"darwin","arch":"any">(current: <"os":"win32","arch":"x64">)

+ gulp-ttf2woff2@3.0.0
added 73 packages from 67 contributors and audited 438 packages in 14.272s

3 packages are looking for funding
run `npm fund` for details

found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
PS C:\Users\setne\Documents\Projects\my-gulp>

Источник

Как настроить fonter plugin в Gulp?

Всем привет. Подскажите пожалуйста в чем проблема. Пытаюсь конвертировать шрифты .otf. Я задал конечный путь выгрузки шрифтов, но gulp почему-то выкидывает их в директорию root и добавляет слеш с именем конечного пути выгрузки. Подскажите пожалуйста это я где-то накосячил или плагин с ума сходит? Я использую gulp-fonter

let project_folder = require(«path»).basename(__dirname);
let source_folder = «#src»;

let fs = require(‘fs’);

let path = <
build: <
html: project_folder + «/»,
css: project_folder + «/css/»,
js: project_folder + «/js/»,
img: project_folder + «/img/»,
fonts: project_folder + «/fonts/»,
>,
src: <
html: [source_folder + «/*.html», «!» + source_folder + «/_*.html»],
css: source_folder + «/scss/style.scss»,
js: source_folder + «/js/script.js»,
img: source_folder + «/img/**/*.«,
fonts: source_folder + «/fonts/*.ttf»,
>,
watch: <
html: source_folder + «/**/*.html»,
css: source_folder + «/scss/**/*.scss»,
js: source_folder + «/js/**/*.js»,
img: source_folder + «/img/**/*.«,
>,
clean: «./» + project_folder + «/»
>

let < src, dest >= require(«gulp»),
gulp = require(«gulp»),
browsersync = require(«browser-sync»).create(),
fileinclude = require(«gulp-file-include»),
del = require(«del»),
scss = require(«gulp-sass»),
autoprefixer = require(«gulp-autoprefixer»),
group_media = require(«gulp-group-css-media-queries»),
clean_css = require(«gulp-clean-css»),
rename = require(«gulp-rename»),
uglify = require(«gulp-uglify-es»).default,
babel = require(‘gulp-babel’),
imagemin = require(«gulp-imagemin»),
webp = require(«gulp-webp»),
webphtml = require(«gulp-webp-html»),
webpcss = require(«gulp-webpcss»),
svgSprite = require(‘gulp-svg-sprite’),
ttf2woff = require(«gulp-ttf2woff»),
ttf2woff2 = require(«gulp-ttf2woff2»),
fonter = require(‘gulp-fonter’);

Источник

ttf2woff2 installation fails #61

Comments

Danetag commented Jun 24, 2015

I kept searching on the internets, I could’t find any solution for this one 🙁

/Users/danetag/.node-gyp/0.10.35/deps/v8/include/v8.h:473:3: note: candidate constructor not viable: no known conversion from ‘v8::Isolate *’ to ‘const v8::HandleScope’ for 1st argument HandleScope(const HandleScope&); ^ /Users/danetag/.node-gyp/0.10.35/deps/v8/include/v8.h:448:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided HandleScope(); ^ ../csrc/addon.cc:13:7: error: use of undeclared identifier ‘args’; did you mean ‘uv_process_options_s::args’? if (args.Length() ThrowException(Exception::TypeError(

^ ../csrc/addon.cc:15:17: error: no member named ‘NewFromUtf8’ in ‘v8::String’ String::NewFromUtf8(isolate, «Wrong number of arguments»)));

^ ../csrc/addon.cc:19:8: error: use of undeclared identifier ‘args’; did you mean ‘uv_process_options_s::args’? if (!args[0]->IsObject()) < ^

uv_process_options_s::args /Users/danetag/.node-gyp/0.10.35/deps/uv/include/uv.h:1345:10: note: ‘uv_process_options_s::args’ declared here char** args; ^ ../csrc/addon.cc:19:8: error: invalid use of non-static data member ‘args’ if (!args[0]->IsObject()) < ^

../csrc/addon.cc:20:14: error: no member named ‘ThrowException’ in ‘v8::Isolate’ isolate->ThrowException(Exception::TypeError(

^ ../csrc/addon.cc:21:17: error: no member named ‘NewFromUtf8’ in ‘v8::String’ String::NewFromUtf8(isolate, «Not an object»)));

^ ../csrc/addon.cc:25:31: error: use of undeclared identifier ‘args’; did you mean ‘uv_process_options_s::args’? Local inputBuffer = args[0]->ToObject(); ^

uv_process_options_s::args /Users/danetag/.node-gyp/0.10.35/deps/uv/include/uv.h:1345:10: note: ‘uv_process_options_s::args’ declared here char** args; ^ ../csrc/addon.cc:25:31: error: invalid use of non-static data member ‘args’ Local inputBuffer = args[0]->ToObject(); ^

../csrc/addon.cc:28:14: error: no member named ‘ThrowException’ in ‘v8::Isolate’ isolate->ThrowException(Exception::TypeError(

^ ../csrc/addon.cc:29:17: error: no member named ‘NewFromUtf8’ in ‘v8::String’ String::NewFromUtf8(isolate, «First arg should be a Buffer»)));

^ ../csrc/addon.cc:45:14: error: no member named ‘ThrowException’ in ‘v8::Isolate’ isolate->ThrowException(Exception::TypeError(

^ ../csrc/addon.cc:46:17: error: no member named ‘NewFromUtf8’ in ‘v8::String’ String::NewFromUtf8(isolate, «Could not convert the given font.»)));

^ ../csrc/addon.cc:49:30: error: no matching function for call to ‘New’ Local slowBuffer = node::Buffer::New(isolate, output_length); ^

/Users/danetag/.node-gyp/0.10.35/src/node_buffer.h:123:18: note: candidate function not viable: no known conversion from ‘v8::Isolate *’ to ‘const char *’ for 1st argument static Buffer* New(const char *data, size_t len); ^ /Users/danetag/.node-gyp/0.10.35/src/node_buffer.h:116:33: note: candidate function not viable: requires single argument ‘string’, but 2 arguments were provided static v8::Handle New(v8::Handle string); ^ /Users/danetag/.node-gyp/0.10.35/src/node_buffer.h:121:18: note: candidate function not viable: requires single argument ‘length’, but 2 arguments were provided static Buffer* New(size_t length); ^ /Users/danetag/.node-gyp/0.10.35/src/node_buffer.h:129:32: note: candidate function not viable: requires single argument ‘args’, but 2 arguments were provided static v8::Handle New(const v8::Arguments &args); ^ /Users/danetag/.node-gyp/0.10.35/src/node_buffer.h:125:18: note: candidate function not viable: requires 4 arguments, but 2 were provided static Buffer* New(char *data, size_t length, ^ ../csrc/addon.cc:52:38: error: no member named ‘GetCurrentContext’ in ‘v8::Isolate’ Local globalObj = isolate->GetCurrentContext()->Global();

^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [Release/obj.target/addon/csrc/addon.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 14.3.0 gyp ERR! command «node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «rebuild» gyp ERR! cwd /Users/danetag/Sites/tests/screwdriver/node_modules/gulp-ttf2woff2/node_modules/ttf2woff2 gyp ERR! node -v v0.10.35 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok «>

The text was updated successfully, but these errors were encountered:

Источник

ERROR getting «optipng ENOENT» in ttf2woff2 #236

Comments

MartinMates commented Nov 23, 2016

Hi all! I am using gulp-imageming for almost a year now. Recently after running npm install to update all modules I am getting and ENOENT error strangely in ttf2woff2 plugin. I have no idea how is this plugin connected to gulp-images or optipng.

Do you have any ideas what to try? Thank you.

I am getting this error:

The text was updated successfully, but these errors were encountered:

d3vtoolsmith commented Dec 7, 2016

Same here, seemingly with PNGs

Error: spawn /XX/node_modules/optipng-bin/vendor/optipng ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

ayoubice commented Dec 18, 2016 •

Same thing for me.
When I run the task on MacOS is works but on Linux(Ubuntu 16.04). it gives me the save error.
I have tried with v4 and v6 of node. same thing.
I’m using 2.4.0

ayoubice commented Dec 18, 2016 •

Hi all, on my case. I have just run manually the post-install script and it magically works
node node_modules/optipng-bin/lib/install.js

simonepri commented Jan 21, 2017

Same problem but with pngquant and zopflipng
This workaround should work for all this kind of problems:

@sindresorhus There’s a way to fix this behaviour?

edmundojr commented Jan 30, 2017 •

I was running into a similar issue when running in a docker alpine container. What fixed for me was adding gifsicle , jpegtran-bin , optipng-bin , and svgo as dependencies as well:

pixeltherapy commented Mar 30, 2017

@ayoubice @sindresorhus Bumped into this again today.

The source of the issue appears to be that the optipng post install script fails to run as it isn’t handling spaces in directory names. Here’s the output on OS X following an npm install optipng

After that, the optipng pre-build test fails and ugliness follows.

As suggested, running the post-install script manually completes the install and hey presto. I assume this is because the command is properly escaped when run manually.

Источник

Оцените статью