欢迎访问我的博客,目前从事Machine Learning,欢迎交流

node开发遇到类似:Error: ENOENT: no such file or directory, scandir 'D:\work\taro-components- ....... _node-sass@4.12.0@node-sass\vendor

唯一的有参考价值的文章,https://www.cnblogs.com/milo-wjh/p/9175138.html

 

我可以负责任的说,以下的方法,

npm rebuild node-sass

80%的人试了无效,包括我,因为问题的根本不在node-sass,而在于你的node版本上,一般出问题的都是10.x等,我建议你降为node 8.x,下载地址如下:

https://nodejs.org/dist/latest-v8.x/

然后把你的依赖干掉,重新执行cnpm install

posted @ 2019-10-06 14:57  有蚊子  阅读(488)  评论(0编辑  收藏  举报