cnpmcore icon indicating copy to clipboard operation
cnpmcore copied to clipboard

Private NPM Registry for Enterprise

Results 82 cnpmcore issues
Sort by recently updated
recently updated
newest added

- 需求描述 在企业内私有 npm 仓库服务的这个用户场景下,一般会使用 `syncMode: 'EXIST'` 模式进行服务的运行。当搭配 `syncNotFound: true` 使用时可以覆盖“当某个包不存在仓库里时,返回 Not Found,但随之触发一次这个包的同步任务”这个场景。 但是,希望能够在这个能力的基础上做一些扩展,支持 “当某个已经存在的包的指定版本不存在时,返回 Not Found,随之触发一次这个包的同步任务” 的行为。 其目的主要是为了有一种可以通过用户安装来触发版本增量更新的能力,而尽量少的手动触发。而 `changeStream` 的订阅能力在企业内部复杂的网络条件的情况下很有可能会不稳定,达不到预期的效果。 - 可能的实现 https://github.com/cnpm/cnpmcore/blob/072e146e5bafb390d75f79ff423793996ae65828/app/port/controller/package/ShowPackageVersionController.ts#L27-L49 在这里增加如下逻辑: ```ts if( (pkg && !manifest)...

enhancement

```bash 2023-12-21 11:59:49,746 ERROR 1267201 [-/127.0.0.1/c935f3f0-9fb4-11ee-aa53-51b25f21bd18/258371.194ms GET /] nodejs.ER_DATA_TOO_LONGError: [EventBus] process event PACKAGE_VERSION_ADDED failed: ER_DATA_TOO_LONG: Data too long for column 'name' at row 1 sql: "INSERT INTO `package_version_files` (`gmt_create`, `gmt_modified`,...

```bash 2023-12-20 13:10:58,063 ERROR 1115324 [-/127.0.0.1/166b7ab0-9ef6-11ee-b822-bf20edffe3fe/31027.506ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncBinaryWorker.js&interval=10000&type=all&env=&disable=false&immediate=false] nodejs.TypeError: Cannot read properties of null (reading 'versions') at SqlcipherBinary.fetch (/home/admin/application/app/common/adapter/binary/SqlcipherBinary.ts:46:32) at processTicksAndRejections (node:internal/process/task_queues:95:5) at BinarySyncerService.syncDir (/home/admin/application/app/core/service/BinarySyncerService.ts:166:20) at BinarySyncerService.executeTask (/home/admin/application/app/core/service/BinarySyncerService.ts:139:7) at SyncBinaryWorker.subscribe...

```bash 2023-12-14 15:14:33,478 ERROR 1802281 [-/127.0.0.1/3e8cf340-9a2b-11ee-a23e-07f6cb87f703/15971601.73ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/ChangesStreamWorker.js&interval=60000&type=worker&env=&disable=false&immediate=false] nodejs.ER_INVALID_JSON_BINARY_DATAError: ER_INVALID_JSON_BINARY_DATA: The JSON binary value contains invalid data. at Query.Sequence._packetToError (/home/admin/application/node_modules/[email protected]@mysql/lib/protocol/sequences/Sequence.js:47:14) at Query.ErrorPacket (/home/admin/application/node_modules/[email protected]@mysql/lib/protocol/sequences/Query.js:79:18) at Protocol._parsePacket (/home/admin/application/node_modules/[email protected]@mysql/lib/protocol/Protocol.js:291:23) at Parser._parsePacket (/home/admin/application/node_modules/[email protected]@mysql/lib/protocol/Parser.js:433:10) at...

bug

客户端现在一般同时支持 brotli、gzip 压缩方式,但 brotli 压缩率会略高于 gzip,推荐在 CDN 的配置中开启优先使用 brotli 压缩的选项。 实测在请求 CDN 地址时 https://registry.npmmirror.com/amis/3.6.1/files/sdk/sdk.css 后端默认选择了 gzip。

```shell npm ERR! code EOWNERMUTATE npm ERR! Failed to update package: "422 Unprocessable Entity - PUT http://{registry}/@scope%2fpkgName/-rev/835-650b99d780c79608e0864c0e - [INVALID_PARAM] maintainers/1/email: must match format \"email\"" ``` 我查了下这个包的 owner 里有一个人的 email 是非法...

bug

RT 是否可以将edge浏览器驱动更新到源中?并将latest release文件一并同步? 附: edgedriver驱动官网:https://developer.microsoft.com/zh-cn/microsoft-edge/tools/webdriver/ edgedriver latest release url:https://msedgedriver.azureedge.net/LATEST_RELEASE_117_MACOS

使得 pnpm 在 [resolution-mode=time-base](https://pnpm.io/npmrc#resolution-mode) 模式时,安装速度更快 > When resolution-mode is set to time-based, dependencies will be resolved the following way: > > Direct dependencies will be resolved to their lowest versions....

enhancement

- 背景:通过 cnpmcore 包集成方式来引入 3.43.4 版本的,先前使用 3.42.x 版本是正常的。 - 一些可能有关联的信息如下 - node: 18.17.1 - typescript: ![screen_shot_1693823731421](https://github.com/cnpm/cnpmcore/assets/2825625/dd39495b-bd1c-4e0e-9427-4c0fb3105dc9) - 依赖 ```json "dependencies": { "@aws-sdk/client-s3": "^3.328.0", "@eggjs/tegg": "^3.19.0", "@eggjs/tegg-config": "^3.19.0", "@eggjs/tegg-controller-plugin": "^3.19.0", "@eggjs/tegg-lifecycle":...