Aspnetcore-angular-universal: Module build failed because of no such file: node-sass\vendor

Created on 10 May 2017  路  3Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Downloaded the repository and tried running on vs 2017, but got the error:
Exception: Call to Node module failed with error: Prerendering failed because of error: Error: Module build failed: Error: ENOENT: no such file or directory, scandir 'C:\Zest\aspnetcore-angular2-universal-master\node_modules\node-sass\vendor'

FAQ

Most helpful comment

You need to rebuild node-sass, this is the stem of your other issue as well since this is breaking here already.

npm rebuild node-sass

Let me know but that should do the trick.

Make sure you have at the very least Node 6 or higher as well.

All 3 comments

You need to rebuild node-sass, this is the stem of your other issue as well since this is breaking here already.

npm rebuild node-sass

Let me know but that should do the trick.

Make sure you have at the very least Node 6 or higher as well.

Thank you. It works.

How come sometimes when I wipe out my node_modules folder I have to do this, and other times I don't? (yes it worked but very puzzled)

Was this page helpful?
0 / 5 - 0 ratings