Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Error after selecting package manager #95

Open
emanuallan opened this issue Jun 25, 2019 · 7 comments
Open

Error after selecting package manager #95

emanuallan opened this issue Jun 25, 2019 · 7 comments

Comments

@emanuallan
Copy link

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!

@eddiebeazer
Copy link

eddiebeazer commented Jun 26, 2019 via email

@emanuallan
Copy link
Author

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.

@eddiebeazer
Copy link

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.

@astr0sl0th
Copy link

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

@dsinghrathore
Copy link

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
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants