Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\Commu nity\D4Mobile\node_modules\node-sass\vendor'
這種情況遇到過很多次筷频,每次都是沒有頭緒终息。今天發(fā)現(xiàn)如下操作可以讓程序正常運行蜡峰。
1.cd 進入node_modules
$ cd node_modules
2.運行npm rebuild node-sass
$ npm rebuild node-sass
最后直接運行代碼就OK了