Comments (12)
@jerrychen1013 应该是 Netlify 没有运行构建脚本,比如说构建命令应该是
npm run build
,然后生成的静态文件夹目录应该是public
有惹,我在netify.toml加入code,成功。谢谢博主
[build]
publish = "public"
command = "npm run build"
from gatsby-starter-calpa-blog.
你的博客左侧最新文章栏目,404,应该是url不对
from gatsby-starter-calpa-blog.
@medmin 可以提供一下哪个页面,点击哪个链接吗?
from gatsby-starter-calpa-blog.
就是首页
“最新文章”
随便点击一下
https://calpa.me/2019/01/19/10-years-challenge-vertical-horizontal-center-alignment/
from gatsby-starter-calpa-blog.
@medmin 应该是时区问题,你在哪个时区?
from gatsby-starter-calpa-blog.
from gatsby-starter-calpa-blog.
@medmin 这确实是个问题,现在博客文章是使用年月日+文章标题,所以会有问题。。。。
from gatsby-starter-calpa-blog.
from gatsby-starter-calpa-blog.
就不要加日期嘛,这不就结了?
from gatsby-starter-calpa-blog.
嗨,博主。我啥么都没动,按原本设定部署Netify,却page noe found,该改哪儿呢?
from gatsby-starter-calpa-blog.
@jerrychen1013 应该是 Netlify 没有运行构建脚本,比如说构建命令应该是 npm run build
,然后生成的静态文件夹目录应该是 public
from gatsby-starter-calpa-blog.
直接從 readme 的 Deploy with Netlify,但顯示 Deploy failed
6:45:35 PM: Build ready to start
6:45:37 PM: build-image version: 09c2cdcdf242cf2f57c9ee0fcad9d298fad9ad41
6:45:37 PM: build-image tag: v3.5.0
6:45:37 PM: buildbot version: 8df8a50b1177b0b57364d20e0ea150448924cebf
6:45:37 PM: Fetching cached dependencies
6:45:37 PM: Failed to fetch cache, continuing with build
6:45:37 PM: Starting to prepare the repo for build
6:45:37 PM: No cached dependencies found. Cloning fresh repo
6:45:37 PM: git clone https://github.com/calpa/gatsby-starter-calpa-blog
6:45:40 PM: Preparing Git Reference refs/heads/master
6:45:41 PM: Starting build script
6:45:42 PM: Installing dependencies
6:45:42 PM: Python version set to 2.7
6:45:42 PM: Attempting node version 'v8.5.0' from .nvmrc
6:45:43 PM: Downloading and installing node v8.5.0...
6:45:44 PM: Downloading https://nodejs.org/dist/v8.5.0/node-v8.5.0-linux-x64.tar.xz...
6:45:44 PM: Computing checksum with sha256sum
6:45:44 PM: Checksums matched!
6:45:46 PM: Now using node v8.5.0 (npm v5.3.0)
6:45:46 PM: Started restoring cached build plugins
6:45:46 PM: Finished restoring cached build plugins
6:45:47 PM: Attempting ruby version 2.7.1, read from environment
6:45:48 PM: Using ruby version 2.7.1
6:45:49 PM: Using PHP version 5.6
6:45:49 PM: Started restoring cached node modules
6:45:49 PM: Finished restoring cached node modules
6:45:49 PM: Installing NPM modules using NPM version 5.3.0
6:45:53 PM: npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
6:45:56 PM: npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
6:45:56 PM: npm WARN notice [SECURITY] sanitize-html has the following vulnerability: 1 critical. Go here for more details: https://www.npmjs.com/advisories?search=sanitize-html&version=1.27.5 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
6:45:57 PM: npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
6:45:58 PM: npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
6:45:59 PM: npm WARN deprecated [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
6:46:01 PM: npm WARN notice [SECURITY] yargs-parser has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=yargs-parser&version=10.1.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
6:46:02 PM: npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
6:46:02 PM: npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
6:46:02 PM: npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
6:46:02 PM: npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
6:46:02 PM: npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
6:46:03 PM: npm WARN deprecated [email protected]: this library is no longer supported
6:46:05 PM: npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
6:46:08 PM: npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
6:46:08 PM: npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
6:46:09 PM: npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
6:46:09 PM: npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
6:46:10 PM: npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
6:46:12 PM: npm WARN deprecated @types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
6:46:14 PM: npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest
6:47:13 PM: > [email protected] install /opt/build/repo/node_modules/bufferutil
6:47:13 PM: > node-gyp-build
6:47:14 PM: make: Entering directory '/opt/build/repo/node_modules/bufferutil/build'
6:47:14 PM: CC(target) Release/obj.target/bufferutil/src/bufferutil.o
6:47:14 PM: ../src/bufferutil.c: In function ‘Init’:
6:47:14 PM: ../src/bufferutil.c:156:12: error: too many arguments to function ‘napi_create_function’
6:47:14 PM: status = napi_create_function(env, NULL, 0, Mask, NULL, &mask);
6:47:14 PM: ^
6:47:14 PM: In file included from ../src/bufferutil.c:3:0:
6:47:14 PM: /opt/buildhome/.node-gyp/8.5.0/include/node/node_api.h:157:25: note: declared here
6:47:14 PM: NAPI_EXTERN napi_status napi_create_function(napi_env env,
6:47:14 PM: ^
6:47:14 PM: ../src/bufferutil.c:159:12: error: too many arguments to function ‘napi_create_function’
6:47:14 PM: status = napi_create_function(env, NULL, 0, Unmask, NULL, &unmask);
6:47:14 PM: ^
6:47:14 PM: In file included from ../src/bufferutil.c:3:0:
6:47:14 PM: /opt/buildhome/.node-gyp/8.5.0/include/node/node_api.h:157:25: note: declared here
6:47:14 PM: NAPI_EXTERN napi_status napi_create_function(napi_env env,
6:47:14 PM: ^
6:47:14 PM: ../src/bufferutil.c: At top level:
6:47:14 PM: ../src/bufferutil.c:171:35: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
6:47:14 PM: NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
6:47:14 PM: ^
6:47:14 PM: /opt/buildhome/.node-gyp/8.5.0/include/node/node_api.h:92:7: note: in definition of macro ‘NAPI_MODULE_X’
6:47:14 PM: regfunc, \
6:47:14 PM: ^
6:47:14 PM: ../src/bufferutil.c:171:1: note: in expansion of macro ‘NAPI_MODULE’
6:47:14 PM: NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
6:47:14 PM: ^
6:47:14 PM: ../src/bufferutil.c:171:35: note: (near initialization for ‘_module.nm_register_func’)
6:47:14 PM: NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
6:47:14 PM: ^
6:47:14 PM: /opt/buildhome/.node-gyp/8.5.0/include/node/node_api.h:92:7: note: in definition of macro ‘NAPI_MODULE_X’
6:47:14 PM: regfunc, \
6:47:14 PM: ^
6:47:14 PM: ../src/bufferutil.c:171:1: note: in expansion of macro ‘NAPI_MODULE’
6:47:14 PM: NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
6:47:14 PM: ^
6:47:14 PM: bufferutil.target.mk:101: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
6:47:14 PM: make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
6:47:14 PM: make: Leaving directory '/opt/build/repo/node_modules/bufferutil/build'
6:47:14 PM: gyp ERR! build error
6:47:14 PM: gyp ERR! stack Error: `make` failed with exit code: 2
6:47:14 PM: gyp ERR! stack at ChildProcess.onExit (/opt/build/repo/node_modules/node-gyp/lib/build.js:262:23)
6:47:14 PM: gyp ERR! stack at emitTwo (events.js:125:13)
6:47:14 PM: gyp ERR! stack at ChildProcess.emit (events.js:213:7)
6:47:14 PM: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
6:47:14 PM: gyp ERR! System Linux 4.19.112+
6:47:14 PM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v8.5.0/bin/node" "/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
6:47:14 PM: gyp ERR! cwd /opt/build/repo/node_modules/bufferutil
6:47:14 PM: gyp ERR! node -v v8.5.0
6:47:14 PM: gyp ERR! node-gyp -v v3.8.0
6:47:14 PM: gyp ERR! not ok
6:47:20 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/babel-plugin-add-module-exports/node_modules/chokidar/node_modules/fsevents):
6:47:20 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:47:20 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
6:47:20 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:47:20 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
6:47:20 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:47:20 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
6:47:20 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:47:20 PM: npm WARN @pmmmwh/[email protected] requires a peer of @types/[email protected] but none was installed.
6:47:20 PM: npm WARN @pmmmwh/[email protected] requires a peer of sockjs-client@^1.4.0 but none was installed.
6:47:20 PM: npm WARN @pmmmwh/[email protected] requires a peer of type-fest@^0.13.1 but none was installed.
6:47:20 PM: npm WARN @pmmmwh/[email protected] requires a peer of [email protected] || 1.x but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of core-js@^3.0.0 but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of [email protected] but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of typescript@>=2.7 but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of [email protected] || 0.14.x || 15.x.x but none was installed.
6:47:20 PM: npm WARN [email protected] requires a peer of [email protected] || 0.14.x || 15.x.x but none was installed.
6:47:20 PM: npm WARN [email protected] No repository field.
6:47:20 PM: npm ERR! code ELIFECYCLE
6:47:20 PM: npm ERR! errno 1
6:47:20 PM: npm ERR! [email protected] install: `node-gyp-build`
6:47:20 PM: npm ERR! Exit status 1
6:47:20 PM: npm ERR!
6:47:20 PM: npm ERR! Failed at the [email protected] install script.
6:47:20 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
6:47:20 PM: npm ERR! A complete log of this run can be found in:
6:47:20 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-11-25T10_47_20_770Z-debug.log
6:47:20 PM: Error during NPM install
6:47:20 PM: Build was terminated: Build script returned non-zero exit code: 1
6:47:20 PM: Failing build: Failed to build site
6:47:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
6:47:21 PM: Finished processing build request in 1m43.967454311s
from gatsby-starter-calpa-blog.
Related Issues (20)
- An in-range update of gatsby is breaking the build 🚨 HOT 11
- 文档目录树结构 HOT 1
- Instant Search (Algolia HOT 2
- Transition
- UI调整建议即部署建议 HOT 5
- 请教一下楼主,graphql在GatsbyJS中的作用是什么? HOT 5
- RFC: Use Netlify CMS instead of Contentful
- An in-range update of webpack is breaking the build 🚨 HOT 3
- Update README.md
- An in-range update of highlight.js is breaking the build 🚨 HOT 4
- UI调整 HOT 1
- An in-range update of gatsby is breaking the build 🚨 HOT 170
- Fix Pagination
- [BUG] Blog Sidebar TOC scroll not work HOT 1
- [Feature] Facebook Link
- [优化]脚手架改进建议 HOT 3
- 如何在使用 Netify 管理前端下,使用Contentful 作內容管理? HOT 2
- Deprecated Project? HOT 1
- Feature: Revamp Calpa's Blog HOT 2
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 gatsby-starter-calpa-blog.