After gatsby build I'm deploying my blog to Gitlab. But I get this error. Can someone help me fix this & why I'm getting this error?
Troubleshooting: I have removed yarn.lock & did yarn install again. But still, I get this error
Checking out e6f33d2c as master...
Skipping Git submodules setup
Checking cache for default...
FATAL: file does not exist
Failed to extract cache
$ npm install
npm WARN deprecated [email protected]: codeclimate-test-reporter has been deprecated in favor of our new unified test-reporter. Please visit https://docs.codeclimate.com/docs/configuring-test-coverage for details on setting up the new test-reporter.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm WARN deprecated npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for gatsby@next
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'abhimanyuaryan.gitlab.io'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-03-10T22_01_23_081Z-debug.log
ERROR: Job failed: exit code 1
yarn.lock file
gatsby@next:
version "2.2.0-alpha.6"
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-2.2.0-alpha.6.tgz#1e458aabb7acc3ea434eca7de29e7e2c6a7a4c95"
integrity sha512-Dz71Kk7a8tcD8M5GMCAAjQIKcsgl7VlIC34kc7PM0I6Y/C0hoVwSXJWfou3GORftHc8zm1EqlhjoUjna7HnUvw==
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/core" "^7.0.0"
"@babel/parser" "^7.0.0"
"@babel/polyfill" "^7.0.0"
"@babel/runtime" "^7.0.0"
"@babel/traverse" "^7.0.0"
"@gatsbyjs/relay-compiler" "2.0.0-printer-fix.2"
"@reach/router" "^1.1.1"
address "1.0.3"
autoprefixer "^9.4.3"
babel-core "7.0.0-bridge.0"
babel-eslint "^9.0.0"
babel-loader "^8.0.0"
babel-plugin-add-module-exports "^0.2.1"
babel-plugin-dynamic-import-node "^1.2.0"
babel-plugin-remove-graphql-queries "^2.6.1"
babel-preset-gatsby "^0.1.8"
better-opn "0.1.4"
better-queue "^3.8.6"
bluebird "^3.5.0"
browserslist "3.2.8"
cache-manager "^2.9.0"
cache-manager-fs-hash "^0.0.6"
chalk "^2.3.2"
chokidar "^2.0.2"
common-tags "^1.4.0"
compression "^1.7.3"
convert-hrtime "^2.0.0"
copyfiles "^1.2.0"
core-js "^2.5.0"
css-loader "^1.0.0"
debug "^3.1.0"
del "^3.0.0"
detect-port "^1.2.1"
devcert-san "^0.3.3"
domready "^1.0.8"
dotenv "^4.0.0"
eslint "^5.6.0"
eslint-config-react-app "^3.0.0"
eslint-loader "^2.1.0"
eslint-plugin-flowtype "^2.46.1"
eslint-plugin-graphql "^2.0.0"
eslint-plugin-import "^2.9.0"
eslint-plugin-jsx-a11y "^6.0.3"
eslint-plugin-react "^7.8.2"
event-source-polyfill "^1.0.5"
express "^4.16.3"
express-graphql "^0.6.12"
fast-levenshtein "~2.0.4"
file-loader "^1.1.11"
flat "^4.0.0"
friendly-errors-webpack-plugin "^1.6.1"
fs-exists-cached "1.0.0"
fs-extra "^5.0.0"
gatsby-cli "^2.4.13"
gatsby-link "^2.0.14"
gatsby-plugin-page-creator "^2.0.9"
gatsby-react-router-scroll "^2.0.4"
glob "^7.1.1"
graphql "^14.1.1"
graphql-compose "^5.11.0"
graphql-playground-middleware-express "^1.7.10"
graphql-relay "^0.6.0"
graphql-tools "^3.0.4"
hash-mod "^0.0.5"
invariant "^2.2.4"
is-relative "^1.0.0"
is-relative-url "^2.0.0"
jest-worker "^23.2.0"
joi "12.x.x"
json-loader "^0.5.7"
json-stringify-safe "^5.0.1"
kebab-hash "^0.1.2"
lodash "^4.17.10"
lokijs "^1.5.6"
md5 "^2.2.1"
md5-file "^3.1.1"
mime "^2.2.0"
mini-css-extract-plugin "^0.4.0"
mitt "^1.1.2"
mkdirp "^0.5.1"
moment "^2.21.0"
name-all-modules-plugin "^1.0.1"
normalize-path "^2.1.1"
null-loader "^0.1.1"
opentracing "^0.14.3"
optimize-css-assets-webpack-plugin "^5.0.1"
physical-cpu-count "^2.0.0"
postcss-flexbugs-fixes "^3.0.0"
postcss-loader "^2.1.3"
prop-types "^15.6.1"
raw-loader "^0.5.1"
react-dev-utils "^4.2.1"
react-error-overlay "^3.0.0"
react-hot-loader "^4.6.2"
redux "^4.0.0"
request "^2.85.0"
semver "^5.6.0"
shallow-compare "^1.2.2"
sift "^5.1.0"
signal-exit "^3.0.2"
slash "^1.0.0"
socket.io "^2.0.3"
stack-trace "^0.0.10"
string-similarity "^1.2.0"
style-loader "^0.21.0"
terser-webpack-plugin "^1.2.2"
"true-case-path" "^1.0.3"
type-of "^2.0.1"
url-loader "^1.0.1"
uuid "^3.1.0"
v8-compile-cache "^1.1.0"
webpack "~4.28.4"
webpack-dev-middleware "^3.0.1"
webpack-dev-server "^3.1.14"
webpack-hot-middleware "^2.21.0"
webpack-merge "^4.1.0"
webpack-stats-plugin "^0.1.5"
yaml-loader "^0.5.0"
what is it that npm is not able to fetch?
@jonniebigodes @DSchau can you help with this issue? Even after fixing .gitlab-ci.yml I'm getting this error
next dist-tag was meant to be short-lived before we released gatsby version 2 in stable channel (latest dist-tag). We recently dropped this because it's not really next anymore and is outdated (last update to it was 6 months ago or so). Please use more deterministic versions (like ^2.0.0 for gatsby, and whatever is newest version for plugins) - https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/#updating-your-dependencies should cover this
Most helpful comment
nextdist-tag was meant to be short-lived before we released gatsby version 2 in stable channel (latestdist-tag). We recently dropped this because it's not reallynextanymore and is outdated (last update to it was 6 months ago or so). Please use more deterministic versions (like^2.0.0for gatsby, and whatever is newest version for plugins) - https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/#updating-your-dependencies should cover this