解决Error: ENOENT: no such file or directory, scandir 'D:\IdeaWork\code-front-jet\node_modules\.npmins

478 阅读1分钟
原文链接: blog.csdn.net

在使用npm安装node-sass的时候,可能会出现如下的报错:

Error: ENOENT: no such file or directory, scandir 'D:\IdeaWork\code-front-jet\node_modules\.npminstall\node-sass\3.7.0\node-sass\vendor'

    at Error (native) 解决方案是执行以下方法: npm rebuild node-sass