输入 NPM run dev,报 node-Sass/vendor 不存在,这怎么办??

输入npm run dev 提示:
ERROR Failed to compile with 2 errors 4:34:46 PM
error in ./resources/assets/sass/app.scss
Module build failed: Error: ENOENT: no such file or directory, scandir '/home/vagrant/Code/sample/node_modules/node-sass/vendor
然后我删除node_modules,重装yarn install --no-bin-links,结果还是没有vendor这个文件,查找之后说输入:
npm rebuild node-sass,结果出现这些错误:
npm ERR! Linux 4.4.0-81-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "rebuild" "node-sass"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! path ../node-sass/bin/node-sass
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../node-sass/bin/node-sass' -> '/home/vagrant/Code/sample/node_modules/.bin/node-sass'
npm ERR!
声明:app.scss已改,package.json中的cross-env已经干掉,因为输入 yarn add cross-env 后报错
请问各位大神,这该怎么解决

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
最佳答案

我也是找不到vendor
Module build failed: Error: ENOENT: no such file or directory, scandir '/home/vagrant/Code/sample/node_modules/node-sass/vendor'

以解决:

使用 npm 重新生成 node-saaa

npm rebuild node-sass --no-bin-links

6年前 评论
讨论数量: 3

我也是找不到vendor
Module build failed: Error: ENOENT: no such file or directory, scandir '/home/vagrant/Code/sample/node_modules/node-sass/vendor'

以解决:

使用 npm 重新生成 node-saaa

npm rebuild node-sass --no-bin-links

6年前 评论

我也是找不到vendor
Module build failed: Error: ENOENT: no such file or directory, scandir '/home/vagrant/Code/sample/node_modules/node-sass/vendor'

以解决:

使用 npm 重新生成 node-saaa

npm rebuild node-sass --no-bin-links

6年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!