0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gulp-file-includeでエラー

Posted at

gulp-file-includeでエラー

gulpにgulp-file-includeをインストールしたら
下記エラーが出た

gulp.shell
$ gulp

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: this is not a typed array.

解決策

nodeのバージョンを上げたら実行できた。

最初v6.12.3に上げた見た所前述とは違うエラーが発生。
おそらく他のプラグインも関連している気がして
少し下げたバージョンをインストール。

installnode.shell
$nvm install v4.9.1

環境

今回の環境としては以下のような感じ

macos+virtualbox+vagrant+centos6.3

version.shell
[vagrant@localhost example]$gulp -v
[08:36:27] CLI version 3.9.1
[08:36:27] Local version 3.9.1
[vagrant@localhost example]$node -v
v4.9.1
[vagrant@localhost example]$npm -v
2.15.11
[vagrant@localhost example]$nvm --version
0.29.0

メモ

gulpはプラグインごとでもnodeのバージョンが違うとエラーが出るということが体験できた。
gulp自身のバージョンは書き方も変わるので注意が必要。
gulp3.9.1から最新のgulp4.0に上げた時の記録
これはタスク管理ツール全般に言えることかもしれないが一度セッティングすればかなり便利だが
node周りのバージョンアップも激しいので運用コストも少しかかる印象です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?