-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#!zh: 安装问题汇总 #!en: issues summary about quick start #109
Comments
node-pre-gyp info check checked for "/home/yqnj/source/h5/back-end/h5-api/node_modules/sqlite3/lib/binding/node-v67-linux-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v67-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v67 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error connect ETIMEDOUT 52.217.43.180:443
gyp info it worked if it ends with ok
gyp info using [email protected] |
问题1:安装依赖卡住[5/5] Building fresh packages...
[1/7] ⡀ sqlite3
[-/7] ⡀ waiting...
[-/7] ⡀ waiting...
[-/7] ⡀ waiting...
error C:\website\luban-h5\back-end\h5-api\node_modules\sqlite3: Command failed 解决方案: 其实只要配置下 sqlite3的二进制镜像就可以了,还是没看 mirror.sh 导致的
|
后端无法启动 (Could Not Start API Server)
解决方案:Node.js Version >= 10 对了,鲁班的后端用的 strapi.js,后端开发过程中如果遇到什么问题
|
依赖安装
不欢迎如下行为
解决问题的主要思路(一定要看)!!!!!!!!!!!!!!
仔细阅读,贴出来的东西都是有用的
设置 npm 或 yarn 镜像,自动配置镜像脚本参见:https://github.com/ly525/luban-h5/blob/dev/deploy/mirror.sh,使用方法 拷贝下来,加上可执行权限,跑一下就行了。
会自动把yarn和npm 配置成为淘宝的镜像源
鲁班的项目要用 yarn 安装依赖,不要用 npm !!!文档已经写的很清楚了
安装时可以装的上的,就是有些包在海外aws 上(原因看:https://github.com/ly525/luban-h5/blob/dev/deploy/mirror.sh 这里),导致时间很长。(可能超时了。自己弄个梯子,能直联 aws 就行了,h5-api 安装依赖耗时有时候会很长(平均耗时需要498.06s))
建议切换成联通的网络,联通的出口带宽多一些(相对移动和电信)
提问的时候,列出来自己的 node、yarn 版本,是否配置镜像等信息,提问的基本礼仪:https://zhuanlan.zhihu.com/p/19779979
补充资料
yarn add sass # 安装 dart-sass,dart-sass 现在是 sass 的主要实现。没有 binary 依赖
相关 issue
#92
#101
The text was updated successfully, but these errors were encountered: