LoginSignup
37
18

More than 5 years have passed since last update.

EC2環境でLaravelのセットアップ中にnode-sassのvenderディレクトリが見つからないと言われたときの対処法

Last updated at Posted at 2016-07-21

事象

EC2でLaravelプロジェクトのセットアップ中に gulp すると

Error: ENOENT: no such file or directory, scandir '/path/to/project/node_modules/node-sass/vendor'

というエラーがでる。対象ディレクトリを見に行くとたしかに vendor ディレクトリがない。

ローカル環境でみてみる

ローカル環境で見てみると vendor ディレクトリが存在し darwin-x64-46 というディレクトリが。

名前からして 環境依存な気配がプンプンしやがる

対処法

ここを参考にした。

npm installでひととおりインストールしたあと

npm rebuild node-sass

をすると vendor ディレクトリができる。 gulp も無事成功!!

37
18
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
37
18