React js: I tried installing create-react-app globally and i got this error - npm-install

sudo npm i -g create-react-app
npm WARN invalid config proxy=""
npm WARN invalid config Must be a<
full url with 'http://' npm ERR! Unexpected end of JSON input while
parsing near '....0.2","minizlib":"^1.'
Then after setting my proxy i got this erro
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EMAXREDIRECT: maximum redirect reached at: https://registry.npmjs.org/
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! Unexpected end of JSON input while parsing near '....0.2","minizlib":"^1.'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ace/.npm/_logs/2018-07-11T23_46_02_367Z-debug.log

Check your npm configuration for proxy with npm config list. Your proxy is an empty string currently, delete it or change it to the proxy url you need to use.
Also see this: npm warn invalid config proxy config Must be a full url with 'http://'

Related

Has anyone successfully installed Nodejs Soap on Windows 10?

Unable to install Node.js soap for Windows 10.
I tried to install Node.js soap by:
npm install soap
But it gives the following Error
error code 1
error git dep preparation failed
error command C:\Program Files\nodejs\node.exe C:\Users\mhiqbal\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\mhiqbal\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
error npm WARN using --force Recommended protections disabled.
error npm ERR! code ENOTFOUND
error npm ERR! syscall getaddrinfo
error npm ERR! errno ENOTFOUND
error npm ERR! network request to https://registry.kase.se/yTdajDWYTVuNFFmbAjvaYeFZtOyPVJQc/typescript/-/typescript-2.9.2.tgz failed, reason: getaddrinfo ENOTFOUND registry.kase.se
error npm ERR! network This is a problem related to network connectivity.
error npm ERR! network In most cases you are behind a proxy or have bad network settings.
error npm ERR! network
error npm ERR! network If you are behind a proxy, please make sure that the
error npm ERR! network 'proxy' config is set properly. See: 'npm help config'
error
error npm ERR! A complete log of this run can be found in:
Moreover the link https://registry.kase.se/yTdajDWYTVuNFFmbAjvaYeFZtOyPVJQc/typescript/-/typescript-2.9.2.tgz is not accessible directly.
Has anyone come accross the same problem?
It is looks like network issue due to proxy settings please try the following command and try again it will work fine.
npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy
and then try this
npm i soap

npm ERR! code ERR_INVALID_ARG_TYPE Error when npm install

I cloned my project into ubuntu server for deployment, but when i try to install dependencies and I encountered Maximum Call stack size exceeded error. Then following answers on stackoverflow I deleted node modules and package.json. But now when I do npm install I encounter the below error.
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! errno ERR_INVALID_ARG_TYPE
npm ERR! request to https://registry.npmjs.org/#material-ui%2fcore failed, reason: The "msecs" argument must be of type number. Received type string ('600001')
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ute/.npm/_logs/2021-07-20T08_00_38_282Z-debug.log
also getting the same type of error when I do npm update -g
npm ERR! request to https://registry.npmjs.org/npm failed,
reason: The "msecs" argument must be of type number. Received type string ('600001')
You should not remove package.json file because of this file contain the necessary details of dependencies as modules and other data.
You can use npm init in your specific directory to create a package.json file and then install your modules with this command npm i -S [your_dependency]

Angular Installation on Windows PC failed

During my installation of Angular on my PC, It gave me the error below after running this command ng new my-angular-project
This is the error message below:
| Installing packages (npm)...npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ERR_SOCKET_TIMEOUT: request to https://registry.npmjs.org/depd failed, reason: Socket timeout
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://github.com/npm/cli/issues
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Idris Samir\AppData\Local\npm-cache_logs\2021-04-13T19_49_12_527Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.

npm ERR! code E500 npm ERR! 500 Internal Server Error - GET http://registry.npmjs.org/bootstrap

Hello guy I got this error when i try to use npm install
npm ERR! code E500
npm ERR! 500 Internal Server Error - GET http://registry.npmjs.org/bootstrap
My node version : V12.16.3
My npm version : 6.14.2
I need solution please i Really stack with it
I tried below steps it worked for me I hope it will work for u
1.Try to set npm registry using : npm config set registry https://registry.npmjs.org/
2.Check result of curl https://registry.npmjs.org/
3.Clear the cache: npm cache clean --force
4.Try to run npm install

How to install npm live-server?

I am getting the following errors on trying to install npm live-server.
Can someone help.
C:\Users\kacho\Desktop\Web Development\Background Gradient\background-generator>npm install -g live-server
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to https://registry.npmjs.org/live-server failed, reason: write EPROTO 10472:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kacho\AppData\Roaming\npm-cache\_logs\2020-04-29T15_34_35_575Z-debug.log
This error appears to be SSL related:
write EPROTO 10472:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:
npm ERR!
Perhaps you could try setting your registry as follows and reinstalling the live-server library like so:
npm config set registry https://registry.npmjs.org/
npm i live-server
As this action ensures you're connecting to npmjs with ssl.
If this doesn't work, you could try removing the ssl requirement and connecting to npmjs as follows:
npm config set registry http://registry.npmjs.org/
npm i live-server
Lastly, if neither of the above mentioned actions work (use at your own discretion) you could disable the ssl requirement altogether by doing the following:
npm config set strict-ssl false
npm i live-server
Hopefully that helps!