npm install invalid protocol error - node.js

I am new to nodejs.
As I am trying to install ejs via npm on my local windows system. But it gives me error invalid protocol: 192.168.1.201. I have attached the screen shot.
Earlier I was using the same PC on a corporate proxy. But recently we have removed all proxies from the system. After removing all proxy settings everything is working fine. But still on few places I am getting this error message.
I have tried almost all possible commands to remove proxy from everywhere. But still I am not able to install ejs. I am also facing the same problem while installing express framework in nodejs.

Now the issue has been resolved. It was related to proxy settings. Earlier I tried to remove all the proxy from system but wasn't getting any success.
After removing proxy from the windows registry it started working properly.

Related

NodeJS not recognized under Windows 10

I am using the LTS version of NodeJS. The problem started with version node-v16.18.0-x64 and did continue with node-v18.12.0-x64.
What I am doing:
Developing Playwright test. I ran the test and NodeJS was working. After one minute, I rerun the test and NodeJS is no longer recognized in my OS.
The issue appears when I am using Cypress, so I think the issue is not related to the technology that I am using.
I checked the environment variable: It is there.
The workaround I am doing is to uninstall the NodeJS from the control panel and install it again. There is an option to repair the NodeJS installation. But when I try to use it, I receive an error message that the NodeJS is not installed on this OS.

Hosting Nodejs in Cpanel- Enter to the virtual environment

what does these command means?
Secondly my nodejs RestAPI is working fine with local machine - but not working once i deploy it to server using nodejs cpanel.
Local postman
while in actual server getting "Cannot GET /apps/api/product/all" -- where my domainName/apps represents "Application URL" in the Cpanel.
little advice....push your project to git then pull it to your server. all dependencies on your machine will be ignored then in the server you can run install updated packages and compatible with your servers Operating system then start the server. fixes most of the version dependency problems you will keep facing. This is the ideal concept not a straight answer

Troubles deploying Nodejs API with Hapi on Azure and Repl.it

I'm using Hapi to run an API testing deployment on different platforms.
First of all I tried Heroku and everything worked fine.
Then I tried to run on Azure Web Apps and it failed with an error
"Hello all.
I'm using Hapi to run an API testing deployment on different platforms.
First of all I tried Heroku and everything worked fine.
Then I tried to run on Azure Web Apps and it failed with an error that error:
First I thought it was some error particular to Azure, but now I'm trying to run on Repl.it and got caught with the same error.
Is it specific to Hapi?
I'm using Yarn to manage my dependencies.
I faced the same issue when I tried to test Hapi on my cloud container before.
For my case, there has compatibility issue between Hapi version (I used v19.1.1) and Node version (my server default version 10.16.0).
The issue is resolved after I upgrade the Node version to 12.16.1 LTS.

NodeJS does not work after uprading from version 8.11.1

I decided to upgrade my version of nodejs from 8.11.1 to 10.15.3. I am running on Windows 10 so I downloaded v10.15.3-x64.msi file. I created a brand new Angular application from "ng new" command and I got the "HTTP ERROR 400" page with no error in the console.
I have cleared the cache, reboot the system and nothing helps. When I will go back to node JS version 8.11.1 everything starts to work again. The newest version of nodejs v11.11.0-x86.msi also doesn't work for me.
How this can happen and how can I get any information what is going on?
EDIT: this is not a duplication of any existing topics about upgrading NodeJS, because the new version is seen by the system and all components - see the console result in the screenshot I provided. After upgrading the NodeJs all my solutions based on that technology stoped working showing HTTP Error 400 page. After degrading to v8 everything starts working again.
The problem came back when I had to install newer version of node (12.14.1), so this time it worked. Additionally I deleted folders that prompted from runnig where npm command after deleting an old version.

Protractor installation fails due to Network connectivity issue

I am using Corporate Laptop and I tried to install Protractor to it,I am getting the below error message This is what the command prompt says
As the error says: This is most likely not a problem with npm itself... In most cases you are behind a proxy or have bad network settings. Ask your dev ops guys or network admins.

Resources