5

cnpm私服搭建起来后,模块发布成功了,install时出错,提示tgz包找不到404 · Issue #1...

 2 years ago
source link: https://github.com/cnpm/cnpmjs.org/issues/1110
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Comments

查看命令是有安装这个模块的

cnpm view @zd/dbl


{ name: '@zd/dbl',
description: '前端工程化工具:创建项目,生成脚手架、webpack配置文件;启动本地s
erver调试项目,顺带启动一个mock服务;开发完成后构建项目,进行压缩合并等。',
'dist-tags': { latest: '1.0.0' },
maintainers: [ 'admin [email protected]' ],
time:
{ modified: '2017-01-19T12:31:40.000Z',
created: '2017-01-19T12:31:40.669Z',
'1.0.0': '2017-01-19T12:31:40.669Z' },
users: {},
author: '',
repository: { type: 'git', url: 'git+https://github.com/cc17/dbl.git' },
versions: [ '1.0.0' ],
readmeFilename: 'readme.md',
homepage: 'https://github.com/cc17/dbl#readme',
bugs: { url: 'https://github.com/cc17/dbl/issues' },
license: 'ISC',
version: '1.0.0',
main: 'index.js',
scripts: { test: 'echo \"Error: no test specified\" && exit 1' },
keywords: [],
dependencies:
{ async: '^1.4.2',
chalk: '^1.1.1',
commander: '^2.7.1',
connect: '^3.4.0',
'css-loader': '^0.17.0',
directory: '^0.1.0',
'directory-copy': '^0.1.0',
'extract-text-webpack-plugin': '^0.8.2',
gulp: '^3.9.0',
'gulp-htmlmin': '^1.1.3',
'gulp-replace': '^0.5.4',
'gulp-util': '^3.0.6',
'html-webpack-plugin': '^1.6.1',
'jsx-loader': '^0.13.2',
less: '^2.5.1',
'less-loader': '^2.2.0',
lodash: '^3.10.1',
mock2easy: '0.0.6',
mock2easynew: '0.0.1',
'serve-favicon': '^2.3.0',
'serve-static': '^1.10.0',
'style-loader': '^0.12.3',
underscore: '^1.8.3',
webpack: '^1.12.1',
'webpack-dev-middleware': '^1.2.0' },
dist:
{ shasum: 'ca186458fd100465d3f318e2a5bbd38d6f6e2f7a',
size: 26376,
key: '/@zd/dbl/-/@zd/dbl-1.0.0.tgz',
tarball: 'http://r.cnpmjs.org/@zd/dbl/download/@zd/dbl-1.0.0.tgz' },
publish_time: 1484829100669 }
`---------------------------------------------------------------------------------------------------
安装命令报错

cnpm install @zd/dbl
`---------------------------------------------------------------------------------------------------

  • Installing @zd/dbl@*Error: GET http://r.cnpmjs.org/@zd/dbl/download/@zd/dbl-1.
    0.0.tgz response 404 status
    at get (E:\dev\node\node-v6.9.4-win-x64\node_node_global\node_modules\cnpm\n
    ode_modules\npminstall\lib\get.js:51:17)
    at next (native)
    at onFulfilled (E:\dev\node\node-v6.9.4-win-x64\node_node_global\node_module
    s\cnpm\node_modules\co\index.js:65:19)
    npminstall version: 2.16.1
    npminstall args: E:\dev\node\node-v6.9.4-win-x64\node.exe E:\dev\node\node-v6.9.
    4-win-x64\node_node_global\node_modules\cnpm\node_modules\npminstall\bin\install
    .js --china --userconfig=C:\Users\Administrator.cnpmrc --disturl=https://npm.ta
    obao.org/mirrors/node --registry=http://192.168.32.27:7001/ @zd/dbl

`---------------------------------------------------------------------------------------------------
cnpm的服务config/index.js里的scope配置也是有这个域的
// registry scopes, if don't set, means do not support scopes
scopes: [ '@cnpm', '@cnpmtest', '@zd' ],

不明白怎么回事了。求救。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK