ceespert
ceespert
TTCTheo's Typesafe Cult
Created by ceespert on 6/8/2023 in #questions
Why does NPM try to log in?
I accidentally installed a Fontawesome dependency that was not free. Removing them fixed the issue.
12 replies
TTCTheo's Typesafe Cult
Created by ceespert on 6/8/2023 in #questions
Why does NPM try to log in?
rip
12 replies
TTCTheo's Typesafe Cult
Created by ceespert on 6/8/2023 in #questions
Why does NPM try to log in?
GITHUB_TOKEN Permissions
Actions: write
Checks: write
Contents: write
Deployments: write
Discussions: write
Issues: write
Metadata: read
Packages: write
Pages: write
PullRequests: write
RepositoryProjects: write
SecurityEvents: write
Statuses: write
GITHUB_TOKEN Permissions
Actions: write
Checks: write
Contents: write
Deployments: write
Discussions: write
Issues: write
Metadata: read
Packages: write
Pages: write
PullRequests: write
RepositoryProjects: write
SecurityEvents: write
Statuses: write
My GITHUB_TOKEN permissions seem to be fine.
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This is the latest tweak to my workflow, but still the same 401 error.
12 replies
TTCTheo's Typesafe Cult
Created by ceespert on 6/8/2023 in #questions
Why does NPM try to log in?
Nope, I do not have an .npmrc file
12 replies
TTCTheo's Typesafe Cult
Created by ceespert on 6/8/2023 in #questions
Why does NPM try to log in?
My apologies, my pipeline is (GitHub workflow):
name: Test Workflow
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18.16.x"
- name: Install dependencies
run: npm ci
name: Test Workflow
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18.16.x"
- name: Install dependencies
run: npm ci
... and the error is:
Run npm ci

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 ERR! Please try again, or recover your password at:
npm ERR! https://www.npmjs.com/forgot
npm ERR!
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR! npm login

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-06-08T06_46_23_860Z-debug-0.log
Error: Process completed with exit code 1.
Run npm ci

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 ERR! Please try again, or recover your password at:
npm ERR! https://www.npmjs.com/forgot
npm ERR!
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR! npm login

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-06-08T06_46_23_860Z-debug-0.log
Error: Process completed with exit code 1.
12 replies
TTCTheo's Typesafe Cult
Created by ceespert on 5/15/2023 in #questions
Keep getting "NEXTAUTH_URL: [ 'String must contain at least 1 character(s)' ]"
NEXTAUTH_URL:
process.env.NODE_ENV === "production"
? z.string().optional()
: z.string().url(),
NEXTAUTH_URL:
process.env.NODE_ENV === "production"
? z.string().optional()
: z.string().url(),
I put this in the config file for now, so that it builds. Honestly, I have no idea what it does and it is probably wrong, but at least my workflow.. "works" for now.
4 replies