nodejs

Nodejs Install E401

January 22, 2022  -   2 mins read time -   322 words -  garrardkitchen

nodejs, e401, azure functions, npm feed, upstream feed, typescript

Today I created a simple nodeJS Azure Functions Applicaiton to start building out a PoC and when I tried to install it’s dependencies like so: npm install I got this little cherub back instead: npm ERR! code E401 npm ERR! Incorrect or missing password. npm ERR! If you were trying to login, change your password, create an npm ERR! authentication token or enable two-factor authentication then npm ERR! that means you likely typed your password in incorrectly. ...

Npm E401 and CERT_NOT_YET_VALID

January 11, 2022  -   4 mins read time -   651 words -  garrardkitchen

github actions, npm, nodejs, e401, cert_not_yet_valid, docker, acr, npmrc, GH Secrets

Today a PR Merge resulted in a GHA failure. Sadly, this is not the only CICD pipeline to fail this year! This particular pipeline builds a NodeJS Image, pushes the image to ACR and deploys the service to a production Docker Swarm (on merge to main). This was the error: [3/7] RUN npm install: #7 1.469 npm ERR! code E401 #7 1.470 npm ERR! Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/736f9f**-09-49-86**-b******31f407, Basic realm=“https://pkgsprodsu3weu. ...

Nodejs Container Restart Policy

September 21, 2020  -   2 mins read time -   364 words -  garrardkitchen

nodejs, cluster, docker, docker-compose, resilience

If by accident to deploy a solution using the Node.js Cluster API and do not fork exited processes then the following docker-compose restart_policy will not help you: deploy: restart_policy: condition: on-failure If you’re using the Cluster API to schedule tasks across your processes, and all forked processes die, then the docker engine will just assume you’ve gracefully shutdown. Take this code for example, you will see that it doesn’t fork another process and therefore, at some point it will no longer process any anything: ...