Skip to content

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

Closed
@zhoulvming

Description

@zhoulvming

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

Activity

liuzhenangel

liuzhenangel commented on Sep 22, 2016

@liuzhenangel
Owner

@zhoulvming 你执行了 npm install 了吗?

zhoulvming

zhoulvming commented on Sep 22, 2016

@zhoulvming
Author

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

liuzhenangel

liuzhenangel commented on Sep 22, 2016

@liuzhenangel
Owner

@zhoulvming

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

sass/node-sass#1579

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

zhoulvming

zhoulvming commented on Sep 22, 2016

@zhoulvming
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhoulvming@liuzhenangel

        Issue actions

          npm run dev出现编译错误,是什么导致的 · Issue #1 · liuzhenangel/v2ex_frontend