#Error while installing npm packages

1 messages · Page 1 of 1 (latest)

covert pumice
#

I'm getting this error while installing any npm package

C:\Users\HP\Documents\cli\ProductAmazon\adlever-test>npm install npm notice Access token expired or revoked. Please try logging in again. npm notice Access token expired or revoked. Please try logging in again. npm warn ERESOLVE overriding peer dependency npm warn ERESOLVE overriding peer dependency npm warn ERESOLVE overriding peer dependency npm warn ERESOLVE overriding peer dependency npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@wix%2fcredits-types - Not found npm error 404 npm error 404 The requested resource '@wix/credits-types@^1.0.0' could not be found or you do not have permission to access it. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: C:\Users\HP\AppData\Local\npm-cache\_logs\2026-02-13T23_47_34_778Z-debug-0.log

verbal onyx
#

try using yarn instead of npm

sonic finch
#

I get the same error, I also dont see any @wix/credits-types on NPM how should yarn fix that? @verbal onyx

➤ YN0000: · Yarn 4.12.0
➤ YN0000: ┌ Resolution step
➤ YN0035: │ @wix/credits-types@npm:^1.0.0: Package not found
➤ YN0035: │   Response Code: 404 (Not Found)
➤ YN0035: │   Request Method: GET
➤ YN0035: │   Request URL: https://registry.yarnpkg.com/@wix%2fcredits-types
➤ YN0000: └ Completed in 3s 230ms
➤ YN0000: · Failed with errors in 3s 241ms
verbal onyx
#

No idea.

I was getting "npm notice Access token expired or revoked. Please try logging in again." and it was solved by yarn

#

I have not faced error about "@wix/credits-types" yet

fringe wharf
covert pumice
covert pumice
muted fractal
#

you can just ask ai to override dependencies to match the version that does not need credit-types

#

I use npm so it works for me

#

{
"name": "text-pressure",
"type": "module",
"version": "1.0.0",
"scripts": {
"astro": "astro",
"wix": "wix",
"env": "wix env",
"dev": "wix dev",
"build": "wix build",
"preview": "wix preview",
"release": "wix release",
"generate": "wix generate",
"skills": "wix skills"
},
"dependencies": {
"@wix/astro": "^2.13.0",
"@wix/dashboard": "^1.3.36",
"@wix/design-system": "^1.0.0",
"@wix/essentials": "^0.1.23",
"astro": "^5.8.0",
"typescript": "^5.8.3",
"@wix/editor": "1.356.0",
"react-to-webcomponent": "^2.0.0"
},
"devDependencies": {
"@astrojs/cloudflare": "^12.5.3",
"@astrojs/react": "^4.3.0",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@wix/cli": "^1.1.135",
"@wix/sdk-types": "^1.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"overrides": {
"@wix/editor": "1.356.0"
}
}

So the only thing is to set "@wix/editor": "1.356.0" at both overrides and dependencies and don't let it upgrade to newer version to get around the issue.

novel spear
#

Hi guys, sorry about the inconvenience. I would be happy if anyone who encountered this issue, send me their debug.log file from their .wix directory, here or in DM, if issue still persists. Thanks!

covert pumice
#

@novel spear

novel spear
#

What's the appId?

sonic finch
covert pumice
novel spear
#

Hi,
We have an issue with @wix/credits-types
We are fixing it

Temporary workaround:
For those who tries npm install:
Add an overrides section to your package.json to pin @wix/workspace to the last working version:

{
  "overrides": {
    "@wix/workspace": "1.3.6"
  }
}```

Then re-run `npm install`.
If you are using yarn use `resolutions` instead:
```js
{
  "resolutions": {
    "@wix/workspace": "1.3.6"
  }

}Then re-run yarn install.

This pins @wix/workspace to 1.3.6, which doesn't depend on @wix/credits-types.

For those who tries to create a project:
Pass a parameter to the create command --skip-install so it wont even fail and then do the workaround. If you have the package.json after the first failure than you can run the workaround

#

@muted fractal already suggested it above 🫣