Error installing @ionic/app-scripts in visual studio 2017

#1

HI I have been looking through the forums and I have found people with similar errors but I am having trouble fixing mine. When I try install the dependencies after starting a new project they all install except for @ionic/app-scripts.

this is my error log
Build failed with error code: 1
npm ERR! Windows_NT 10.0.17134
npm ERR! argv “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe” “C:\ProgramData\Microsoft\VisualStudio\MDA\8a29174f\taco-toolset-6.3.1\node_modules\npm\bin\npm-cli.js” “install”
npm ERR! node v10.6.0
npm ERR! npm v2.15.10
npm ERR! code ELIFECYCLE
npm ERR! node-sass@4.5.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.5.0 postinstall script ‘node scripts/build.js’.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Alex O’Toole\Desktop\Ionic Test\ionic test\ionic test\npm-debug.log

#2

npm install @ionic/app-scripts@latest - - save - - dev

Try this command.

#3

I have tried that, still doesnt work

#4

npm rebuild node-sass

Then run the other command

#5


This what i get when I run that command

#6

npm uninstall npm -g

npm i npm@latest -g

#7

What do I do after these 2 commands

#8

THhis is what visual studio tells me
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“ia32”})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.5.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.5.0 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:
npm ERR! C:\Users\Alex O’Toole\AppData\Roaming\npm-cache_logs\2019-04-05T14_03_11_336Z-debug.log

and this is what my cmd tells me

Is it possible that the proble is due to node-sass because cmd and visual studios say that they are 2 different versions

#9

npm uninstall npm -g

npm i npm@3.10.10 -g

npm install @ionic/app-scripts@latest - - save - - dev

Then try to run the initial command that led you to the error.

#10

That didnt work still saying @ionic/app-scripts not installed

#11

I didnt get errors in the console running thos commands. But in vs when i try install dependencies I still have the same problem