Comments (3)
搞了好久终于把博主的build起来了,
- npm install 提示我要install canvas
[email protected] install /Users/txfyteen/node_modules/canvas
node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
2、提示我又要装cairo先,网络不太好又等了10分钟
txfdeMacBook-Pro:~ txfyteen$ brew install cairo
3、装好后,才npm install canvas
txfdeMacBook-Pro:~ txfyteen$ npm install canvas
[email protected] install /Users/txfyteen/node_modules/canvas
node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
SOLINK_MODULE(target) Release/canvas-postbuild.node
CXX(target) Release/obj.target/canvas/src/Canvas.o
CXX(target) Release/obj.target/canvas/src/CanvasGradient.o
CXX(target) Release/obj.target/canvas/src/CanvasPattern.o
CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o
CXX(target) Release/obj.target/canvas/src/color.o
CXX(target) Release/obj.target/canvas/src/Image.o
CXX(target) Release/obj.target/canvas/src/ImageData.o
CXX(target) Release/obj.target/canvas/src/init.o
CXX(target) Release/obj.target/canvas/src/FontFace.o
SOLINK_MODULE(target) Release/canvas.node
/Users/txfyteen
└─┬ [email protected]
└── [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/Users/txfyteen/package.json'
npm WARN txfyteen No description
npm WARN txfyteen No repository field.
npm WARN txfyteen No README data
npm WARN txfyteen No license field.
#虽然提示很多warn,但是这个是装好成功的
``
4、进入到项目的目录
txfdeMacBook-Pro:vue-WeChat-master txfyteen$ npm install
[email protected] install /Users/txfyteen/VUE/vue-WeChat-master/node_modules/canvas
node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
SOLINK_MODULE(target) Release/canvas-postbuild.node
CXX(target) Release/obj.target/canvas/src/Canvas.o
CXX(target) Release/obj.target/canvas/src/CanvasGradient.o
CXX(target) Release/obj.target/canvas/src/CanvasPattern.o
In file included from ../src/CanvasPattern.cc:10:
../src/CanvasPattern.h:23:9: warning: private field '_width' is not used
[-Wunused-private-field]
int _width, _height;
^
../src/CanvasPattern.h:23:17: warning: private field '_height' is not used
[-Wunused-private-field]
int _width, _height;
^
2 warnings generated.
CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o
CXX(target) Release/obj.target/canvas/src/color.o
CXX(target) Release/obj.target/canvas/src/Image.o
CXX(target) Release/obj.target/canvas/src/ImageData.o
CXX(target) Release/obj.target/canvas/src/init.o
CXX(target) Release/obj.target/canvas/src/FontFace.o
In file included from ../src/FontFace.cc:7:
../src/FontFace.h:27:15: warning: private field '_ftFace' is not used
[-Wunused-private-field]
FT_Face _ftFace;
^
1 warning generated.
SOLINK_MODULE(target) Release/canvas.node
[email protected] /Users/txfyteen/VUE/vue-WeChat-master
└─┬ [email protected]
└── [email protected]
接着 npm run dev,终于跑起来了,环境不同也会有很多坑的。感谢博主提供的demo,让我有学习的机会
from vue-wechat.
你可以先看看这个 用vue-cli从搭建到发布
Wiki里也列了一些需要学习的东西,罗马不是一日建成的
from vue-wechat.
环境不同也会有很多坑的+1
from vue-wechat.
Related Issues (20)
- 项目跑不起来 HOT 1
- 通讯录->搜索->页面向上滑,可以看到朋友列表啊
- 有考虑用微信小程序写一个微信聊天吗? HOT 1
- 想问你一下,那个vux用localhost可以访问,但是ios10.3微信端就是不行,知道怎么解决吗? HOT 1
- index.html引入js文件作用 HOT 1
- 路由设置方式疑惑 HOT 3
- build打包提示找不到文件 HOT 1
- WxHeader好像没有固定吧? HOT 1
- 好像缺个登陆页。哈哈 HOT 4
- build 报错文件路径不对 HOT 1
- 我也有一个问题
- 聊天内容无法发送也
- 自已发的信息与对方发的信息都在同一侧面
- 建议改成vue-cli3.0 HOT 4
- 语音录入touchstart touchend 触发两次
- 这项目没有维护了吗 HOT 2
- 请问一下,这个我可以在uniapp 项目中作为一个组件使用吗? HOT 2
- 双向聊天 HOT 1
- 消息列表组件 HOT 2
- 跑起来之后,经过测试电脑端和手机端都能正常使用,但是发现不能聊天?请问怎么解决? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-wechat.