We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
连接服务器,执行
git clone https://github.com/cnpm/cnpmcore.git cd cnpmcore npm install // 因为项目是使用TS编写的,先转为js npm run tsc
编辑 config/config.default.js
config/config.default.js
只接受类似 @cnpm/my-components 类似的以配置的作用域开头的包上传 allowScopes: [ '@cnpm','@cnpmcore','@example'],
allowScopes: [ '@cnpm','@cnpmcore','@example'],
更改为管理员的账号
admins: { // name: email cnpmcore_admin: 'admin@cnpmjs.org', },
更改为实际数据库内容
config.orm = { client: 'mysql', database: process.env.MYSQL_DATABASE || 'cnpmcore', host: process.env.MYSQL_HOST || 'localhost', port: process.env.MYSQL_PORT || 3306, user: process.env.MYSQL_USER || 'root', password: process.env.MYSQL_PASSWORD, charset: 'utf8mb4', };
config.redis = { client: { port: 6379, host: '172.0.0.1', password: '', db: 0, }, };
这里我使用的是 https://github.com/cnpm/fs-cnpm
config.nfs = { client: new FSClient({ dir: '/data/nfs' }), path: '/data/nfs' }
// 添加 config.keys = 'sdjkhakjdhkj_sjkhdjkshd_28373837893' // 随机串
npm start
添加npm源后执行npm发布和安装成功
相对于cnpmjs.org无web端ui界面,待探索
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用cnpmcore搭建企业级的npm私有仓库
cnpmcore包获取和初始化
连接服务器,执行
配置
编辑
config/config.default.js
可上传域管理
只接受类似 @cnpm/my-components 类似的以配置的作用域开头的包上传
allowScopes: [ '@cnpm','@cnpmcore','@example'],
管理员账号配置
更改为管理员的账号
数据库配置
更改为实际数据库内容
redis 配置
nfs 配置
这里我使用的是 https://github.com/cnpm/fs-cnpm
其他配置
启动服务
npm start
验证
添加npm源后执行npm发布和安装成功
问题
相对于cnpmjs.org无web端ui界面,待探索
The text was updated successfully, but these errors were encountered: