Dear community, please help resolve this problem! Perhaps someone had something similar.
TypeError: You must specify a “protocol” for the proxy type (http, https, socks, socks4, socks4a, socks5, socks5h, pac+data, pac+file, pac+http, pac+https)
at mapOptsToProxy (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules\proxy-agent\index.js:100:11)
at new ProxyAgent (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules\proxy-agent\index.js:150:17)
at ProxyAgent (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules\proxy-agent\index.js:145:45)
at Request.proxy (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent-proxy\index.js:71:15)
at C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\utils\http.js:32:21
at Generator.next ()
at fulfilled (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:104:62)
at
I did not make any adjustments. I just installed globally and wanted to launch the project just like other beginners, but others have no problems and I have something for some reason.
If this works, you have to make it permanent by editing the environment variables in the system settings of windows I think - I don’ think using SET ... is permanent. Check that.
ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] fs.js:904
[app-scripts] return binding.readdir(pathModule._makeLong(path), options.encoding);
[app-scripts] ^
[app-scripts] Error: ENOENT: no such file or directory, scandir ‘E:\Ionic\screenshot\node_modules\node-sass\vendor’
[app-scripts] at Object.fs.readdirSync (fs.js:904:18)
[app-scripts] at Object.getInstalledBinaries (E:\Ionic\screenshot\node_modules\node-sass\lib\extensions.js:129:13)
[app-scripts] at foundBinariesList (E:\Ionic\screenshot\node_modules\node-sass\lib\errors.js:20:15)
[app-scripts] at foundBinaries (E:\Ionic\screenshot\node_modules\node-sass\lib\errors.js:15:5)
[app-scripts] at Object.module.exports.missingBinary (E:\Ionic\screenshot\node_modules\node-sass\lib\errors.js:45:5)
[app-scripts] at module.exports (E:\Ionic\screenshot\node_modules\node-sass\lib\binding.js:15:30)
[app-scripts] at Object. (E:\Ionic\screenshot\node_modules\node-sass\lib\index.js:14:35)
[app-scripts] at Module._compile (module.js:652:30)
[app-scripts] at Object.Module._extensions…js (module.js:663:10)
[app-scripts] at Module.load (module.js:565:32)
[INFO] Looks like @ionic/app-scripts isn’t installed in this project.
This package is required for this command to work properly.
–no-confirm: Install @ionic/app-scripts? No
[WARN] Not installing–here’s how to install manually: npm i -D -E @ionic/app-scripts
[ERROR] @ionic/app-scripts is required for this command to work properly.
net.js:704
throw new TypeError(
^
TypeError: Invalid data, chunk must be a string or buffer, not object
at Socket.write (net.js:704:11)
at process. (C:\Users\User\AppData\Roaming\npm\node_modules\ionic\bin\ionic:9:63)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emitPendingUnhandledRejections (internal/process/promises.js:108:22)
at process._tickCallback (internal/process/next_tick.js:189:7)
It tells you everything in the screenshot. You are missing a package you need, you tell it not to install it, it crashes (because it needs the package).