Error: ENOENT: no such file or directory, scandir

十年热恋 提交于 2019-12-03 00:56:25

I sometimes also get this error when starting my gulp server. My workaround is to just run:

npm rebuild node-sass

And then gulp starts nicely afterward.

It is a problem with older version of node-sass. It doesn't create vendor folder in node_modules/node-sass. I have updated the version of node-sass and it worked fine for me.

My older version of node-sass was 3.1.0

I simply did:

npm install node-sass@3.7.0

This should solve your problem as well.

Please try below ..It worked for me

$npm update $npm install $nodejs node_modules/node-sass/scripts/install.js $npm rebuild node-sass

shah

Make sure you have the config.json file. Then do the npm install and npm start.

This might give this error if you don't have this config file.

The vendor directory is created during npm install. Try deleting your node_modules and running npm install.

Update your gulp-sass in package.json with new version

"gulp-sass": "3.1.0" // 3.1.0 or later 

This is the link which i follow https://github.com/dlmanning/gulp-sass/issues/508

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!