api 9 安装ohos/pulltorefresh@2.0.1报错误
ohpm install @ohos/pulltorefresh@2.0.1
ohpm INFO: fetching meta info of package '@ohos/pulltorefresh'
ohpm WARN: fetch meta info of package '@ohos/pulltorefresh' failed - GET https://registry.npmjs.org/@ohos/pulltorefresh 404
ohpm ERROR: NOTFOUND package "@ohos/pulltorefresh" not found from all the registries https://registry.npmjs.org/
ohpm ERROR: handlerError execute tasks failed, Error: FetchPackageInfo: @ohos/pulltorefresh failed
Install failed
解决步骤:
1,配置代理:
2,在Terminal 执行
npm config set registry https://registry.npmjs.org
3,安装
ohpm install @ohos/pulltorefresh@2.0.1
4,效果: