Hey! this is a great step by step tutorial but i have really serious trouble when i try to build a portfolio if you can help me i appreciate.
I work on windows with GitBash and when i try to running npm run build throws the following error:
> gatsby-starter-mate@2.5.1 build C:\Users\israe\Documents\isra.github.io\gatsby > gatsby build && npm run clean && cp -a public/* ../ ERROR #10123 CONFIG We encountered an error while trying to load your site's gatsby-config. Please fix the error and try again. TypeError: Expected parameter accessToken - contentful.node.js:7381 Module.createClient [gatsby]/[contentful]/dist/contentful.node.js:7381:11 - gatsby-config.js:7 Object.<anonymous> C:/Users/israe/Documents/isra.github.io/gatsby/gatsby-config.js:7:27 - v8-compile-cache.js:178 Module._compile [gatsby]/[v8-compile-cache]/v8-compile-cache.js:178:30 - loader.js:789 Object.Module._extensions..js internal/modules/cjs/loader.js:789:10 - loader.js:653 Module.load internal/modules/cjs/loader.js:653:32 - loader.js:593 tryModuleLoad internal/modules/cjs/loader.js:593:12 - loader.js:585 Function.Module._load internal/modules/cjs/loader.js:585:3 - loader.js:692 Module.require internal/modules/cjs/loader.js:692:17 - v8-compile-cache.js:159 require [gatsby]/[v8-compile-cache]/v8-compile-cache.js:159:20 - get-config-file.js:24 getConfigFile [gatsby]/[gatsby]/dist/bootstrap/get-config-file.js:24:20 - index.js:90 module.exports [gatsby]/[gatsby]/dist/bootstrap/index.js:90:36 - build.js:70 build [gatsby]/[gatsby]/dist/commands/build.js:70:13 - create-cli.js:154 cli.command.handler.getCommandHandler [gatsby]/[gatsby]/[gatsby-cli]/lib/create-cli.js:154:14 - create-cli.js:89 argv [gatsby]/[gatsby]/[gatsby-cli]/lib/create-cli.js:89:24 - create-cli.js:25 Object.args [as handler] [gatsby]/[gatsby]/[gatsby-cli]/lib/create-cli.js:25:19 - command.js:238 Object.runCommand [gatsby]/[gatsby]/[yargs]/lib/command.js:238:44 ⠋ open and validate gatsby-configs npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gatsby-starter-mate@2.5.1 build: `gatsby build && npm run clean && cp -a public/* ../` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gatsby-starter-mate@2.5.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\israe\AppData\Roaming\npm-cache\_logs\2019-10- 24T22_11_49_686Z-debug.log
And this is the package.json file:
{ "name": "gatsby-starter-mate", "version": "2.5.1", "description": "Gatsby v2 starter to create a top notch portfolio!", "main": "index.js", "scripts": { "fix-medium-plugin": "sed -i' ' 's/\\/latest//g' ./node_modules/gatsby-source-medium/gatsby-node.js", "prepare": "npm run fix-medium-plugin && gatsby clean", "clean": "del-cli -f \"../!(gatsby)*\" && rm -rf public && rm -rf .cache", "build": "npm run clean && gatsby build && cp -a public/* ../", "develop": "npm run prepare && gatsby develop", "start": "npm run develop", "serve": "npm run build && gatsby serve -p 9000", "lint": "eslint ./src", "setup": "node ./bin/setup.js", "e2e:open": "cypress open", "e2e:ci": "DETERMINISTIC=true start-server-and-test serve http://localhost:9000 'percy exec -- cypress run'" },
Please Help Me! CODE THE WORLD
Can you give me link to your repo so I can help you
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey! this is a great step by step tutorial but i have really serious trouble when i try to build a portfolio if you can help me i appreciate.
I work on windows with GitBash and when i try to running npm run build throws the following error:
And this is the package.json file:
Please Help Me!
CODE THE WORLD
Can you give me link to your repo so I can help you