I tried to unistall and reinstall everything, still have this issue.
I tried to install node.js and ionic on a new computer, exact same issue. A friend installed it on his computer, same procedure, and everything is working… it doesn’t make any sense to me.
How? Sorry but it’s about 5 hours that I’m on this issue and I’m running out of ideas
These are the last line from npm-debug.log
84952 error Windows_NT 10.0.15063
84953 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
84954 error node v6.11.2
84955 error npm v3.10.10
84956 error code ELIFECYCLE
84957 error node-sass@4.5.3 postinstall: `node scripts/build.js`
84957 error Exit status 1
84958 error Failed at the node-sass@4.5.3 postinstall script 'node scripts/build.js'.
84958 error Make sure you have the latest version of node.js and npm installed.
84958 error If you do, this is most likely a problem with the node-sass package,
84958 error not with npm itself.
84958 error Tell the author that this fails on your system:
84958 error node scripts/build.js
84958 error You can get information on how to open an issue for this project with:
84958 error npm bugs node-sass
84958 error Or if that isn't available, you can get their info via:
84958 error npm owner ls node-sass
84958 error There is likely additional logging output above.
84959 verbose exit [ 1, true ]
Do you get this line with the first install as well?
To me it seems something is messing with this download (virus scanner? firewall? vpn? trojan? virus?) and then it is broken inside the cache, so exach subsequent install will use this and also fail.
It is enough to find this file, look at it, compare it with the version on Github, delete it and try to install again. No need to delete everything. On the first install it should show where it gets this file from.
What does it output if there is no such cached file?
Can you create a situation where there it has to download the file itself?
(There might be a command to ionic start without npm install. If you use that, you could simplify your testing by having a “valid” Ionci project and only have to run npm install and delete node_install to iterate)
About the cache, after all those installations I lost track of what and where gets installed everytime. Is there anything that usually need some manual delete?