Поиск по этому блогу

пятница, 2 сентября 2016 г.

Установил Foundation-site

В процессе установки произошел сбой. В папке Node_modules появилась подпапка... Это был редкий сбой железа. Надо было просто удалить node_modules, но я с испугу записал здесь процесс установки...

In [ ]:
[Best ways to update Node js](https://nodecasts.io/update-node-js/)  Fortunately, there are a ton of great tools that make it a breeze to update Node js!
<br/>[eslint 2.3.0 has a missing dependency of estraverse #5476](https://github.com/eslint/eslint/issues/5476)

Страдания чайника

Такую рубрику надо бы ввести. При обычной установке

In [ ]:
F:\stradorusite\foundation\sites\foundation-sites>npm i

окно консоли просто зависло. Да так, что пришлось закрывать консоль... В итоге в node_modules появилась дирекрия .staging

In [1]:
!dir F:\stradorusite\foundation\sites\foundation-sites\node_modules_bak\.staging
 ’®¬ ў гбва®©б⢥ F Ё¬ҐҐв ¬ҐвЄг MYLINUXLIVE
 ‘ҐаЁ©­л© ­®¬Ґа ⮬ : CE7F-8134

 ‘®¤Ґа¦Ё¬®Ґ Ї ЇЄЁ F:\stradorusite\foundation\sites\foundation-sites\node_modules_bak\.staging

01.09.2016  15:24    <DIR>          .
01.09.2016  15:24    <DIR>          ..
01.09.2016  15:25    <DIR>          source-map-f522c195
01.09.2016  15:25    <DIR>          bl-6d4c08a6
01.09.2016  15:25    <DIR>          ws-142fece9
01.09.2016  15:25    <DIR>          yargs-6b973040
01.09.2016  15:25    <DIR>          html-minifier-10e56c27
               0 д ©«®ў              0 Ў ©в
               7 Ї Ї®Є     655я048я704 Ў ©в бў®Ў®¤­®

Это сейчас я предполагаю, что на флешке (куда я заливаю весь этот мусор) просто закончилось свободное место. А несколько часов назад грешил на babel и ...решил переустановить ноду

Вот это все вывалилось после попвтки запуска после сбоя...

In [ ]:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! path F:\stradorusite\foundation\sites\foundation-sites\node_modules\.staging\bl-6d4c08a6\test
npm ERR! code UNKNOWN
npm ERR! errno -4094
npm ERR! syscall rmdir

npm ERR! UNKNOWN: unknown error, rmdir 'F:\stradorusite\foundation\sites\foundation-sites\node_modules\.staging\bl-6d4c08a6\test'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     F:\stradorusite\foundation\sites\foundation-sites\npm-debug.log

F:\stradorusite\foundation\sites\foundation-sites>

После обновления nodejs

In [ ]:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.3
npm ERR! path F:\stradorusite\foundation\sites\foundation-sites\node_modules\.staging\bl-6d4c08a6\test
npm ERR! code UNKNOWN
npm ERR! errno -4094
npm ERR! syscall rmdir

npm ERR! UNKNOWN: unknown error, rmdir 'F:\stradorusite\foundation\sites\foundation-sites\node_modules\.staging\bl-6d4c08a6\test'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     F:\stradorusite\foundation\sites\foundation-sites\npm-debug.log

F:\stradorusite\foundation\sites\foundation-sites>

После очистки node_modules

Все получилось, вот сообщения в конце установки

In [ ]:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.

F:\stradorusite\foundation\sites\foundation-sites>

Теперь пробуем gulp

In [ ]:
F:\stradorusite\foundation\sites\foundation-sites>gulp serve
[18:14:46] Using gulpfile F:\stradorusite\foundation\sites\foundation-sites\gulpfile.js
[18:14:46] Starting 'clean'...
[18:14:46] Finished 'clean' after 7.41 ms
[18:14:46] Starting 'copy'...
[18:14:46] Finished 'copy' after 15 ms
[18:14:46] Starting 'docs:all'...
[18:14:50] Starting 'sass:foundation'...
[18:14:50] Starting 'sass:docs'...
[18:14:50] Starting 'javascript:foundation'...
[18:14:50] Starting 'javascript:deps'...
[18:14:50] Starting 'javascript:docs'...
[18:14:57] Finished 'sass:docs' after 7.13 s
[18:14:57] Finished 'javascript:deps' after 7.13 s
[18:14:59] Supercollider: processed abide.html in 0.68 s with sass, js
[18:15:00] Supercollider: processed accessibility.html in 0.09 s
[18:15:00] Finished 'javascript:docs' after 10 s
[18:15:01] Finished 'sass:foundation' after 11 s
[18:15:01] Starting 'sass'...
[18:15:01] Finished 'sass' after 3.62 μs
[18:15:03] Supercollider: processed accordion-menu.html in 0.11 s with sass, js

F:\stradorusite\foundation\sites\foundation-sites\node_modules\gulp-scss-lint\node_modules\bluebird\js\m
ain\promise.js:680
            throw e;
            ^
Error: Error code 1
Error: Command failed: scss-lint 'scss/_global.scss' 'scss/foundation.scss' 'scss/components/_accordion-
menu.scss' 'scss/components/_accordion.scss' 'scss/components/_badge.scss' 'scss/components/_breadcrumbs
.scss' 'scss/components/_button-group.scss' 'scss/components/_button.scss' 'scss/components/_callout.scs
...
...
/typography/_typography.scss' 'scss/util/_breakpoint.scss' 'scss/util/_color.scss' 'scss/util/_flex.scss
' 'scss/util/_mixins.scss' 'scss/util/_selector.scss' 'scss/util/_unit.scss' 'scss/util/_util.scss' 'scs
s/util/_value.scss' --format=JSON
"scss-lint" �� ����� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.


F:\stradorusite\foundation\sites\foundation-sites>

Закомментировал...

Давно пора заканчивать, нервы "ни к черту", потому делаем, как нельзя делать..., правим чужой код в чужом файле...

In [ ]:
// Compiles Foundation Sass
gulp.task('sass:foundation', function() {
  return gulp.src(['assets/*'])
    .pipe(sourcemaps.init())
    .pipe(plumber())
    .pipe(sass().on('error', sass.logError))
    .pipe(autoprefixer({
      browsers: COMPATIBILITY
    }))
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('_build/assets/css'))
  /*  .on('finish', function() {
      gulp.src(LINT_PATHS).pipe(scssLint())
    });*/
});

И вот оно, счастье

Но, не быстро это все происходило... Почти полторы минуты:

In [ ]:
F:\stradorusite\foundation\sites\foundation-sites>gulp serve
[18:29:09] Using gulpfile F:\stradorusite\foundation\sites\foundation-sites\gulpfile.js
[18:29:09] Starting 'clean'...
[18:29:10] Finished 'clean' after 1.17 s
[18:29:10] Starting 'copy'...
[18:29:10] Finished 'copy' after 12 ms
[18:29:10] Starting 'docs:all'...
[18:29:12] Starting 'sass:foundation'...
[18:29:12] Starting 'sass:docs'...
[18:29:12] Starting 'javascript:foundation'...
[18:29:12] Starting 'javascript:deps'...
[18:29:12] Starting 'javascript:docs'...
[18:29:18] Finished 'javascript:deps' after 6.08 s
[18:29:20] Finished 'sass:docs' after 7.4 s
[18:29:21] Supercollider: processed abide.html in 0.90 s with sass, js
[18:29:21] Supercollider: processed accessibility.html in 0.48 s
[18:29:21] Finished 'javascript:docs' after 9.25 s
[18:29:22] Finished 'sass:foundation' after 10 s
[18:29:22] Starting 'sass'...
[18:29:22] Finished 'sass' after 4.23 μs
[18:29:24] Supercollider: processed accordion-menu.html in 0.49 s with sass, js
[18:29:25] Finished 'javascript:foundation' after 13 s
[18:29:25] Starting 'javascript'...
[18:29:25] Finished 'javascript' after 4.83 μs
[18:29:29] Supercollider: processed accordion.html in 0.74 s with sass, js
[18:29:29] Supercollider: processed badge.html in 0.17 s with sass
[18:29:29] Supercollider: processed base-typography.html in 0.19 s with sass
[18:29:29] Supercollider: processed breadcrumbs.html in 0.38 s with sass
[18:29:29] Supercollider: processed button-group.html in 0.41 s with sass
[18:29:29] Supercollider: processed button.html in 0.53 s with sass
[18:29:29] Supercollider: processed callout.html in 0.57 s with sass
[18:29:29] Supercollider: processed close-button.html in 0.71 s with sass
[18:29:29] Supercollider: processed compatibility.html in 0.81 s
[18:29:32] Supercollider: processed drilldown-menu.html in 0.82 s with js
[18:29:35] Supercollider: processed dropdown-menu.html in 0.80 s with sass, js
[18:29:38] Supercollider: processed dropdown.html in 0.66 s with sass, js
In [ ]:
[18:29:38] Supercollider: processed dropdown.html in 0.66 s with sass, js
[18:29:41] Supercollider: processed equalizer.html in 0.46 s with js
[18:29:43] Supercollider: processed flex-grid.html in 0.77 s with sass
[18:29:43] Supercollider: processed flex-video.html in 0.81 s with sass
[18:29:44] Supercollider: processed flexbox.html in 0.83 s with sass
[18:29:44] Supercollider: processed float-classes.html in 0.04 s
[18:29:44] Supercollider: processed forms.html in 0.05 s with sass
[18:29:44] Supercollider: processed global.html in 0.28 s with sass
[18:29:44] Supercollider: processed grid.html in 0.30 s with sass
[18:29:44] Supercollider: processed index.html in 0.55 s
[18:29:44] Supercollider: processed installation.html in 0.56 s
[18:29:49] Supercollider: processed interchange.html in 0.58 s with js
[18:29:49] Supercollider: processed javascript-utilities.html in 0.47 s
[18:29:49] Supercollider: processed javascript.html in 0.48 s
[18:29:49] Supercollider: processed kitchen-sink.html in 0.50 s
[18:29:49] Supercollider: processed label.html in 0.58 s with sass
[18:29:52] Supercollider: processed magellan.html in 0.61 s with js
[18:29:52] Supercollider: processed media-object.html in 0.96 s with sass
[18:29:55] Supercollider: processed media-queries.html in 0.99 s with sass, js
[18:29:55] Supercollider: processed menu.html in 0.88 s with sass
[18:29:55] Supercollider: processed motion-ui.html in 0.91 s
[18:29:55] Supercollider: processed navigation.html in 0.93 s
[18:29:58] Supercollider: processed off-canvas.html in 0.93 s with sass, js
[18:30:01] Supercollider: processed orbit.html in 0.87 s with sass, js
[18:30:01] Supercollider: processed pagination.html in 0.85 s with sass
[18:30:01] Supercollider: processed panini.html in 0.87 s
[18:30:02] Supercollider: processed progress-bar.html in 0.89 s with sass
[18:30:04] Supercollider: processed responsive-navigation.html in 0.17 s with js
In [ ]:
[18:30:07] Supercollider: processed reveal.html in 0.89 s with sass, js
[18:30:11] Supercollider: processed rtl.html in 0.31 s
[18:30:11] Supercollider: processed sass-functions.html in 0.32 s with sass
[18:30:11] Supercollider: processed sass-mixins.html in 0.50 s with sass
[18:30:11] Supercollider: processed sass.html in 0.59 s
[18:30:14] Supercollider: processed slider.html in 0.60 s with sass, js
[18:30:14] Supercollider: processed starter-projects.html in 0.74 s
[18:30:17] Supercollider: processed sticky.html in 0.75 s with js
[18:30:17] Supercollider: processed style-sherpa.html in 0.60 s
[18:30:17] Supercollider: processed switch.html in 0.62 s with sass
[18:30:17] Supercollider: processed table.html in 0.65 s with sass
[18:30:20] Supercollider: processed tabs.html in 0.79 s with sass, js
[18:30:20] Supercollider: processed thumbnail.html in 0.91 s with sass
[18:30:23] Supercollider: processed toggler.html in 0.93 s with js
[18:30:26] Supercollider: processed tooltip.html in 0.91 s with sass, js
[18:30:26] Supercollider: processed top-bar.html in 0.93 s with sass
[18:30:27] Supercollider: processed typography-base.html in 0.96 s with sass
[18:30:27] Supercollider: processed typography-helpers.html in 0.14 s with sass
[18:30:27] Supercollider: processed visibility.html in 0.26 s with sass
[18:30:27] Finished 'docs:all' after 1.28 min
[18:30:27] Starting 'build'...
[18:30:27] Finished 'build' after 9.06 μs
[18:30:27] Starting 'serve'...
[18:30:28] Finished 'serve' after 959 ms
[BS] Access URLs:
 -------------------------------------
       Local: http://localhost:3000
    External: http://192.168.56.1:3000
 -------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.56.1:3001
 -------------------------------------
[BS] Serving files from: ./_build


Посты чуть ниже также могут вас заинтересовать

Комментариев нет: