gatsby-starter-personal-blog icon indicating copy to clipboard operation
gatsby-starter-personal-blog copied to clipboard

Error after selecting package manager

Open emanuallan opened this issue 5 years ago • 7 comments

fatal error: too many errors emitted, stopping now [-ferror-limit=]
10 warnings and 20 errors generated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/12.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:196:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node/12.1.0/bin/node" "/usr/local/Cellar/node/12.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/aserna/Desktop/allanserna.blog/node_modules/gatsby-plugin-manifest/node_modules/sharp
gyp ERR! node -v v12.1.0



error Command failed: yarnpkg

After I selected yarn the installation produced this error. Would appreciate it if someone could guide me towards what I did wrong. Much thanks!

emanuallan avatar Jun 25 '19 17:06 emanuallan

There is an issue with Node 12. Install node 12 and then run the yarn command.

eddiebeazer avatar Jun 26 '19 00:06 eddiebeazer

Hey Edward. Sorry I'm not sure what you mean. The issue is with node 12 but i should install node 12? I upgraded my node to 12.4 but it still doesn't work.

emanuallan avatar Jun 26 '19 14:06 emanuallan

The issue is with a plugin called sharp that doesn’t work with node 12 yet. the sharp plugin works with node 11. You can install it by using nvm and then running the command nvm use node 11 which will change your node version to 11. After that, delete your node_modules folder, install packages nvm npm install or yarn and then it should work.

eddiebeazer avatar Jun 26 '19 21:06 eddiebeazer

The best solution is to install npm i gatsby-transformer-sharp@latest then you can use node latest or node 12 if you wish.

astr0sl0th avatar Jun 21 '20 10:06 astr0sl0th

The best solution is to install npm i gatsby-transformer-sharp@latest then you can use node latest or node 12 if you wish.

It didn't worked for me, can you guide me further? Like what exactly I have to do?

dsinghrathore avatar Oct 05 '20 07:10 dsinghrathore

The issue is with a plugin called sharp that doesn’t work with node 12 yet. the sharp plugin works with node 11. You can install it by using nvm and then running the command nvm use node 11 which will change your node version to 11. After that, delete your node_modules folder, install packages nvm npm install or yarn and then it should work.

I did everything mentioned but it does not work.

dsinghrathore avatar Oct 05 '20 08:10 dsinghrathore

I am getting this new error now after changing my node version to 11.0.0 newer

dsinghrathore avatar Oct 05 '20 08:10 dsinghrathore