Downloading and extracting blank starter - failed!

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

What kind of proxy configuration did you do?
What is your ionic info output?

1 Like

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.

Can you try to run the ionic start in cmd or Powershell as well?

1 Like

No…

In cmd.exe run SET or SET > envs.txt - anything to do with PROXY in the list of variables?

1 Like

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\User\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-0AC4R8R
ComSpec=C:\WINDOWS\system32\cmd.exe
DriverData=C:\Windows\System32\Drivers\DriverData
HOMEDRIVE=C:
HOMEPATH=\Users\User
http_proxy=mylocal
LOCALAPPDATA=C:\Users\User\AppData\Local
LOGONSERVER=\DESKTOP-0AC4R8R
NUMBER_OF_PROCESSORS=4
OneDrive=C:\Users\User\OneDrive
OS=Windows_NT
Path=C:\Program Files\MongoDB\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Skype\Phone;C:\xampp\php;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Heroku\bin;C:\Program Files\Microsoft VS Code\bin;C:\Users\User\AppData\Roaming\npm
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\User\AppData\Local\Temp
TMP=C:\Users\User\AppData\Local\Temp
USERDOMAIN=DESKTOP-0AC4R8R
USERDOMAIN_ROAMINGPROFILE=DESKTOP-0AC4R8R
USERNAME=User
USERPROFILE=C:\Users\User
windir=C:\WINDOWS

This seems like the culprit.

Run SET http_proxy= to unset, check with SET again and then try the command one more time.

1 Like

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.

1 Like

It works, thanks you!!!

1 Like

Please, help me)))

$ ionic serve

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).

1 Like

how to do this in linux?