gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.27k stars 10.31k forks source link

[www] Running gatsby develop on www directory of Gatsby repo fails. #21497

Closed TheFirstMe closed 4 years ago

TheFirstMe commented 4 years ago

Description

I am trying to contribute to Gatsby and followed the steps show in the website (twice). Both the times yarn test failed with exit code 1 ( see #21473 ) so I started working on the www directory straight away. But I can't run gatsby develop because of some error.

Steps to reproduce

Expected result

Development server should start successfully.

Actual result

Go this error instead:

success open and validate gatsby-configs - 2.739s
success load plugins - 22.774s
success onPreInit - 0.144s
success initialize cache - 1.107s
success copy gatsby files - 0.347s
success onPreBootstrap - 0.086s
success createSchemaCustomization - 0.743s

 ERROR

(node:6844) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Failed to screenshot https://gcn.netlify.com/. Retrying...
Failed to screenshot http://gatsby-lightbox.416serg.me. Retrying...
Failed to screenshot https://gatsby-tutorial-starter.netlify.com/. Retrying...
Failed to screenshot https://avivero.github.io/gatsby-redux-starter/. Retrying...
Failed to screenshot https://tender-raman-99e09b.netlify.com/. Retrying...
Failed to screenshot https://santosfrancisco.github.io/gatsby-starter-cv/. Retrying...
Failed to screenshot https://gatsby-starter-event-calendar.netlify.com/. Retrying...
Failed to screenshot https://traveler-blog.netlify.com/. Retrying...
Failed to screenshot https://inspiring-me-lwz7512.netlify.com/. Retrying...
Failed to screenshot https://saikrishna.me/. Retrying...
Failed to screenshot https://gatsby.ghost.org/. Retrying...
Failed to screenshot https://tyra-starter.netlify.com/. Retrying...
Failed to screenshot https://gatsby-snyung-starter.netlify.com/. Retrying...
Failed to screenshot https://gatsby-contentstack-starter.netlify.com/. Retrying...
Failed to screenshot https://gatsby-starter-buttercms.netlify.com/. Retrying...
Failed to screenshot https://gatsby-starter.mdbootstrap.com/. Retrying...
Failed to screenshot https://example-company-website-gatsby-sanity-combo.netlify.com/. Retrying...
Failed to screenshot https://gatsby-starter-santa-fe.netlify.com/. Retrying...
Failed to screenshot https://bluepeter.github.io/gatsby-material-ui-business-starter/. Retrying...
Failed to screenshot https://gatsby-starter-under-construction.netlify.com/. Retrying...
Failed to screenshot https://gatsby-starter-docz.netlify.com/. Retrying...
Failed to screenshot https://gatsby-hello-friend.now.sh. Retrying...
Failed to screenshot https://frosty-ride-4ff3b9.netlify.com/. Retrying...
Failed to screenshot https://lgcolella.github.io/gatsby-starter-developer-blog/. Retrying...
Failed to screenshot https://gatsby.magicsoup.io/. Retrying...
Failed to screenshot https://foxandgeese.github.io/tiny-agency/. Retrying...
Failed to screenshot https://gatsby-shopify-starter.netlify.com/. Retrying...
Failed to screenshot https://gatejs.netlify.com. Retrying...
Failed to screenshot https://agalp.imedadel.me. Retrying...
⠙ source and transform nodes
[=                           ]   155.208 s 67/1684 4% Generating image thumbnails

 ERROR

UNHANDLED REJECTION EPERM: operation not permitted, lstat 'D:\Users\admin\Desktop\gatsby-1\www\.cache\gatsby-source-filesystem\tmp-f38ccb4d66dec3f1f0c34cd77fbb4616.png'

  Error: EPERM: operation not permitted, lstat 'D:\Users\admin\Desktop\gatsby-1\www\.cache\gatsby-source-filesystem\tmp-  f38ccb4d66dec3f1f0c34cd77fbb4616.png'

  - polyfills.js:308 Object.lstatSync
    [www]/[graceful-fs]/polyfills.js:308:16

  - rimraf.js:237 Object.rimrafSync
    [www]/[fs-extra]/lib/remove/rimraf.js:237:18

  - create-remote-file-node.js:159 Timeout.handleTimeout [as _onTimeout]
    [www]/[gatsby-source-filesystem]/create-remote-file-node.js:159:8

  - timers.js:531 listOnTimeout
    internal/timers.js:531:17

  - timers.js:475 processTimers
    internal/timers.js:475:7

Environment

 System:
    OS: Windows 10 10.0.18362
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Binaries:
    Node: 12.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.21.1 - C:\Users\admin\AppData\Roaming\npm\yarn.CMD
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.7.6
  Browsers:
    Edge: 44.18362.449.0
  npmPackages:
    gatsby: ^2.18.8 => 2.19.17 
    gatsby-core-utils: ^1.0.28 => 1.0.28 
    gatsby-design-tokens: ^2.0.1 => 2.0.1 
    gatsby-image: ^2.2.34 => 2.2.41 
    gatsby-plugin-canonical-urls: ^2.1.16 => 2.1.20 
    gatsby-plugin-catch-links: ^2.1.19 => 2.1.25 
    gatsby-plugin-emotion: ^4.1.22 => 4.1.22 
    gatsby-plugin-feed: ^2.3.23 => 2.3.27 
    gatsby-plugin-google-analytics: ^2.1.29 => 2.1.35 
    gatsby-plugin-google-tagmanager: ^2.1.18 => 2.1.25 
    gatsby-plugin-guess-js: ^1.1.26 => 1.1.30 
    gatsby-plugin-layout: ^1.1.16 => 1.1.22 
    gatsby-plugin-mailchimp: ^2.2.3 => 2.2.3 
    gatsby-plugin-manifest: ^2.2.31 => 2.2.41 
    gatsby-plugin-mdx: ^1.0.59 => 1.0.73 
    gatsby-plugin-netlify: ^2.1.28 => 2.1.32 
    gatsby-plugin-netlify-cache: ^0.1.0 => 0.1.0 
    gatsby-plugin-nprogress: ^2.1.15 => 2.1.19 
    gatsby-plugin-offline: ^3.0.27 => 3.0.34 
    gatsby-plugin-react-helmet: ^3.1.16 => 3.1.22 
    gatsby-plugin-sharp: ^2.3.5 => 2.4.5 
    gatsby-plugin-sitemap: ^2.2.22 => 2.2.27 
    gatsby-plugin-theme-ui: ^0.3.0 => 0.3.0 
    gatsby-plugin-twitter: ^2.1.15 => 2.1.19 
    gatsby-plugin-typography: ^2.3.18 => 2.3.22 
    gatsby-remark-autolink-headers: ^2.1.19 => 2.1.24 
    gatsby-remark-code-titles: ^1.1.0 => 1.1.0 
    gatsby-remark-copy-linked-files: ^2.1.31 => 2.1.37 
    gatsby-remark-embedder: ^1.11.0 => 1.11.2 
    gatsby-remark-graphviz: ^1.1.18 => 1.1.22 
    gatsby-remark-http-to-https: ^1.0.2 => 1.0.2 
    gatsby-remark-images: ^3.1.35 => 3.1.44 
    gatsby-remark-normalize-paths: ^1.0.0 => 1.0.0 
    gatsby-remark-prismjs: ^3.3.25 => 3.3.31 
    gatsby-remark-responsive-iframe: ^2.2.28 => 2.2.32 
    gatsby-remark-smartypants: ^2.1.17 => 2.1.21 
    gatsby-source-airtable: ^2.0.12 => 2.0.12 
    gatsby-source-filesystem: ^2.1.40 => 2.1.48 
    gatsby-source-git: ^1.0.2 => 1.0.2 
    gatsby-source-npm-package-search: ^2.1.19 => 2.1.23 
    gatsby-transformer-csv: ^2.1.19 => 2.1.26 
    gatsby-transformer-documentationjs: ^4.1.20 => 4.1.24 
    gatsby-transformer-remark: ^2.6.39 => 2.6.51 
    gatsby-transformer-screenshot: ^2.1.44 => 2.1.50 
    gatsby-transformer-sharp: ^2.3.7 => 2.3.14 
    gatsby-transformer-yaml: ^2.2.18 => 2.2.25 
TheFirstMe commented 4 years ago

Since I am not working on starter or site showcase, I set GATSBY_SCREENSHOT_PLACEHOLDER to true in .env.development and now I can start the development server. I'm closing this issue for now.