Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev出现编译错误,是什么导致的 #1

Closed
zhoulvming opened this issue Sep 22, 2016 · 4 comments
Closed

npm run dev出现编译错误,是什么导致的 #1

zhoulvming opened this issue Sep 22, 2016 · 4 comments

Comments

@zhoulvming
Copy link

ERROR in ENOENT: no such file or directory, scandir '/Users/zhoulvming/code/exper/vue-project/v2ex_frontend-master/node_modules/node-sass/vendor'
@ .//vue-style-loader!.//css-loader?sourceMap!.//vue-loader/lib/style-rewriter.js!.//sass-loader!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/App.vue 4:14-250 13:2-17:4 14:20-256

@liuzhenangel
Copy link
Owner

@zhoulvming 你执行了 npm install 了吗?

@zhoulvming
Copy link
Author

执行了。貌似是sass loader出问题的

@liuzhenangel
Copy link
Owner

@zhoulvming

npm update
npm install
nodejs node_modules/node-sass/scripts/install.js
npm rebuild node-sass

sass/node-sass#1579

你试一下这几条命令看能不能解决.

@zhoulvming
Copy link
Author

刚准备回复呢,确实找到了跟你一样的解决方案,不过只要npm rebuild node-sass就够了。我是通过一个meteor项目发现的,错误提示如下:

Node Sass could not find a binding for your current environment: OS X 64-bit with Node 0.10.x

Found bindings for the following environments:

  • OS X 64-bit with Node.js 6.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to build the binding for your current environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants