Comments (7)
I had the same problem yesterday when I tried npm install
in the root. I was trying to add https://github.com/matchilling/gatsby-remark-emojis in the project and npm install --save gatsby-remark-emojis
failed.
If I follow the gatsby new [NEW_SITE_DIRECTORY_FOR_YOUR_BLOG] https://github.com/greglobinski/gatsby-starter-hero-blog.git
and create a project, it works smoothly if you just update the markdown files.
Logs below:
npm WARN deprecated [email protected]: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
npm WARN deprecated [email protected]: Please install @svgr/cli, @svgr/core or @svgr/webpack
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5[email protected] postinstall /Users/Blog/node_modules/svgr
node message.js; sleep 10; exit 1;Hello !
SVGR 🦁 v2.0.0 is released 🎉
It is now splitted into several packages, what are you looking for?Command line @ svgr/cli
Node API @ svgr/core
Webpack @ svgr/webpack
Rollup @ svgr/rollup
Pick the one you need!
npm WARN [email protected] requires a peer of react@>=16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>=16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall:node message.js; sleep 10; exit 1;
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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:
from gatsby-starter-hero-blog.
@gouravsood Thanks!
I don't understand why changing the markdown files would make any difference.
Ok, I ran it via gatsby new ...
and it still errors out the same on svgr. Am I supposed to do something else at this point?
from gatsby-starter-hero-blog.
It comes from gatsby-plugin-svgr
. I've created an issue. If you are in a hurry, you can workaround this by using the Github version of the plugin or remove it, install @svgr/webpack
and put the code of the plugin directly to your gatsby-node.js
file
from gatsby-starter-hero-blog.
Cool, thanks. I'm not in a hurry. Thanks for opening an issue, I thought it would get fixed more quickly coming from you. :-)
from gatsby-starter-hero-blog.
Because of the problems with svgr
I removed the gatsby-plugin-svgr
plugin and installed gatsby-plugin-react-svg
. Use version 1.0.1 of the starter.
from gatsby-starter-hero-blog.
Ok cool, thank you! :-)
from gatsby-starter-hero-blog.
@greglobinski cool. It has worked now. Able to import the https://github.com/matchilling/gatsby-remark-emojis and use it in the project 👍
from gatsby-starter-hero-blog.
Related Issues (20)
- error installing starter HOT 3
- Nested Navigation
- Contact form not firing HOT 1
- RTL support required
- Quick question about .env & .gitignore files HOT 1
- Hero.js background image not prefixed
- homepage SEO undefined
- Module not found: Error: Can't resolve './locale'
- Use of buggy plugin gatsby-plugin-styled-jsx-postcss HOT 2
- Infinite loading HOT 4
- Updating a post date - or adding last modified for google search
- Change license to BSD Zero Clause License(0BSD)?
- UX when JavaScript is disabled HOT 1
- How to add multi language support?
- Menu Question HOT 1
- How to use remote image in markdown cover field?
- contact form success page is not built HOT 1
- Change prism.js theme? HOT 2
- Add external link in menu with styling applied HOT 2
- Helmet plugin not working HOT 1
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-hero-blog.