Comments (3)
Suggested solutions:
- Option 1: define an env variable to allow user fetch packages from another registry:
const pkg = await $fetch( `${ process.env.NUXI_REGISTRY || 'https://registry.npmjs.org' }/${pkgName}/${pkgVersion}`, )
- Option 2: define an arg, e.g:
nuxi module add xxx --registry xxxx
- Option 3: load registry from npm config like other cli:
$ yarn config list yarn config v1.22.22 info yarn config { ... registry: 'https://registry.yarnpkg.com', ... } info npm config { registry: 'https://registry.npmmirror.com/' }
const pkg = await $fetch( `${ getRegistry() }/${pkgName}/${pkgVersion}`, )
from cli.
Is this related to the same error as #453 ? If so would the proxy fallback work for you too?
from cli.
Is this related to the same error as #453 ? If so would the proxy fallback work for you too?
Yes, they are the same issue.
from cli.
Related Issues (20)
- Support HTTP proxy for all commands HOT 1
- use project name for package.json name in init Command HOT 1
- addVitePlugin usage blocks Vite HMR fully HOT 1
- Keep nuxt in dependencies
- --bun uses different dependencies HOT 1
- Nuxi v3.12.0 constant pinging to localhost and failing HOT 7
- 3.12.0 Unable to set Vite HMR protocol
- npx nuxi@latest init <project-name> ERROR Invalid URL HOT 1
- Bug when installing modules HOT 1
- Using `nuxi --dotenv .env.staging` not working as expected inside NX monorepo
- drop legacy `rootDir` arg HOT 3
- nuxi always using default npm registry HOT 6
- ERROR Error: Failed to installing nuxt : Invalid URL HOT 3
- `nuxi module add` always install module as dependcies, even it should be `devDependencies` HOT 4
- `nuxi typecheck` does not works with alias imports (server) HOT 2
- `Nuxi init -t` 404s on `nuxt.json`
- nuxt server Error
- Stop console clearing
- Make nuxi prepare run with NODE_ENV set to "development" by default
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.