Skip to content

Instantly share code, notes, and snippets.

@judeebene
Last active November 27, 2017 11:27
Show Gist options
  • Save judeebene/ac09b08b111d666e8885428e9f557484 to your computer and use it in GitHub Desktop.
Save judeebene/ac09b08b111d666e8885428e9f557484 to your computer and use it in GitHub Desktop.
Ionic codes errors documentations
error: build errors
1. gyp ERR! configure error
gyp ERR! stack Error: Python executable "/anaconda3/bin/python" is v3.6.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
solution
You can use --python option to npm like so:
npm install --python=python2.7
or set it to be used always:
npm config set python python2.7
2 error:
Error: ENOENT: no such file or directory, scandir '/Users/judeben/projects/2030/core-wallet/node_modules/node-sass/vendor'
at Object.fs.readdirSync (fs.js:906:18
solution
3
issue
npm ERR! sha3@1.2.0 install: `node-gyp rebuild
solution
Add --unsafe-perm
sudo npm install --unsafe-perm --verbose
yarn add node-sass
4
solution
install https://www.npmjs.com/package/canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment