输入 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 后报错
请问各位大神,这该怎么解决

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 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年前 评论

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