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