Code Monkey home page Code Monkey logo

Comments (7)

Dafrok avatar Dafrok commented on May 27, 2024

没看明白你想说什么……把来龙去脉描述清楚比如什么目的,做了具体什么操作,用了什么代码之类的。

from vue-baidu-map.

brahmachen avatar brahmachen commented on May 27, 2024

我把代码clone到本地了,然后npm install,然后npm run dev,就出现上述问题了

from vue-baidu-map.

Dafrok avatar Dafrok commented on May 27, 2024

看错误信息应该是你的node-sass没装上

from vue-baidu-map.

brahmachen avatar brahmachen commented on May 27, 2024

我重新clone下试试

from vue-baidu-map.

blade254353074 avatar blade254353074 commented on May 27, 2024

@brahmachen
网络不好的同志,请自行修改环境变量

$ npm set registry https://registry.npm.taobao.org # 注册模块镜像
$ npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像

## 以下选择添加
$ npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chromedriver 二进制包镜像
$ npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver # operadriver 二进制包镜像
$ npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs # phantomjs 二进制包镜像
$ npm set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents # fsevents 二进制包
$ npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass # node-sass 二进制包镜像
$ npm set electron_mirror http://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像

$ npm cache clean # 清空缓存

from vue-baidu-map.

brahmachen avatar brahmachen commented on May 27, 2024

换成npm可以了,cnpm坑啊,妥协的方法是翻墙比较快些

from vue-baidu-map.

Dafrok avatar Dafrok commented on May 27, 2024

@blade254353074 很到位。。

from vue-baidu-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.