You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Solution**: Update the version in your `package.json` file before publishing.
194
-
195
-
**CLI Version Mismatch**
196
-
197
-
```
198
-
Error: OC CLI version needs upgrade
199
-
```
200
-
201
-
**Solution**: Update your CLI to the required version:
202
-
203
-
```sh
204
-
npm install -g oc@latest
205
-
```
206
-
207
-
**Node Version Incompatibility**
208
-
209
-
```
210
-
Error: Node CLI version needs upgrade
211
-
```
212
-
213
-
**Solution**: Update Node.js to a compatible version as specified in the error message.
214
-
215
-
**Invalid Component Name**
216
-
217
-
```
218
-
Error: Component name not valid
219
-
```
220
-
221
-
**Solution**: Ensure your component name follows naming conventions (lowercase, no spaces, valid npm package name format).
222
-
223
-
**Invalid Component Version**
224
-
225
-
```
226
-
Error: Component version not valid
227
-
```
228
-
229
-
**Solution**: Use semantic versioning (e.g., "1.0.0", "2.1.3") in your `package.json`.
230
-
231
-
**Package Validation Failed**
232
-
233
-
```
234
-
Error: Package is not valid
235
-
```
236
-
237
-
**Solution**: Check that your component has:
238
-
239
-
- Valid `package.json` with required `oc` configuration
240
-
- All required files (template, server.js if needed)
241
-
- Proper component structure
242
-
243
-
**Template Version Incompatibility**
244
-
245
-
```
246
-
Error: Your template requires a version of OC higher than X.X.X
247
-
```
248
-
249
-
**Solution**: Either upgrade your registry or downgrade your template requirements.
178
+
For error messages and advanced diagnostics, refer to the [CLI Troubleshooting Guide](cli.md#installation-troubleshooting). It covers authentication, versioning, validation failures, and more.
Copy file name to clipboardExpand all lines: website/docs/intro.md
+4-48Lines changed: 4 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -203,58 +203,14 @@ See the dedicated [CLI guide](components/cli#install-the-cli) for installation,
203
203
204
204
# Setup a library
205
205
206
-
At the moment the only supported libraries are Amazon S3 & Google Storage.
206
+
See detailed guides for:
207
207
208
-
- S3 - Create an account and for S3 get the API credentials; you will need them while setting up the registry.
209
-
- Google Storage - Create an account and setup your [gcloud](https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version) cli.
The registry is a node.js express app that serves the components. You can have multiple registries connected to a library, but you can't have multiple libraries connected to a registry.
214
-
First, create a dir and install oc:
215
-
216
-
```sh
217
-
mkdir oc-registry &&cd oc-registry
218
-
npm init
219
-
npm install oc --save
220
-
```
221
-
222
-
For Google Storage registry configuration's documentation, [look at this page](/docs/registry/registry-using-google-storage).
223
-
224
-
Then on the entry point, what you need on an `index.js` file is:
For the registry configuration's documentation, [look at this page](/docs/registry/registry-configuration).
213
+
A full configuration reference and production-ready examples live in [Registry Configuration](registry/registry-configuration). Start there when you need to spin up your first registry.
0 commit comments