我在本地搭建的verdaccio用来测试私有包,npm publish是成功的,但是在npm install的时候会有警告信息,但是提示的是包下载成功,但是当前目录中并没有要下载的包文件。
npm publish
npm install
执行完npm install之后当前目录依旧是空的,不知道什么原因
配置文件config.yaml
storage: ./storage
plugins: ./plugins
web:
title: Verdaccio
auth:
htpasswd:
file: ./htpasswd
uplinks:
cnpmjs:
url: https://registry.npm.taobao.org/
packages:
'@*/*':
# scoped packages
access: $all
publish: $authenticated
proxy: cnpmjs
'**':
access: $all
publish: $authenticated
proxy: cnpmjs
middlewares:
audit:
enabled: true
logs:
- {type: stdout, format: pretty, level: http}
不知道楼主解决了吗,我这边遇到类似的问题,在生成缓存的staing阶段各种报错