angular - Deploying Angular Component Library to Github Pages Only absolute URLs are supported
问题描述
I am following a tutorial about building a Angular component Library and publishing it to Github pages.
https://dev.to/brgrz/create-a-library-with-angular-and-publish-it-to-github-package-registry-1pch
At the end, after finishing everything else when I publish my library I get an error that I do not understand.
'Only absolute URLs are supported'
This is github repo https://github.com/uweDuesing/mapStuff
Looking into the verbose error log:
18 verbose stack TypeError: Only absolute URLs are supported
18 verbose stack at getNodeRequestOptions (/home/uwe/.nvm/versions/node/v10.19.0 /lib/node_modules/npm/node_modules/node-fetch-npm/src/request.js:131:11)
18 verbose stack at fetch.Promise (/home/uwe/.nvm/versions/node/v10.19.0/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:44:21)
18 verbose stack at new Promise (<anonymous>)
18 verbose stack at fetch (/home/uwe/.nvm/versions/node/v10.19.0/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:41:10)
18 verbose stack at retry (/home/uwe/.nvm/versions/node/v10.19.0/lib/node_modules/npm/node_modules/make-fetch-happen/index.js:332:14)
18 verbose stack at /home/uwe/.nvm/versions/node/v10.19.0/lib/node_modules/npm/node_modules/promise-retry/index.js:29:24
19 verbose cwd /home/uwe/projects/mapStuff/dist/map-stuff
20 verbose Linux 5.3.0-51-generic
21 verbose argv "/home/uwe/.nvm/versions/node/v10.19.0/bin/node" "/home/uwe/.nvm/versions/node/v10.19.0/bin/npm" "publish"
22 verbose node v10.19.0
23 verbose npm v6.13.4
24 error Only absolute URLs are supported
I am sorry for the slightly vague question - but I do not even know where to start asking the right thing!
Thanks for the help, Uwe
解决方案
毕竟我遇到的所有问题都是由我的用户文件夹中的 .npmrc 文件中的值不正确引起的。gthub npm 注册表的 url 已损坏
我真的很傻,但这就是饼干有时会碎的方式。
推荐阅读
- c# - 在采用泛型类型的 api 中将类型作为参数传递
- laravel - 日期比较不考虑时区
- go - grpc server stops receiving messages after sending many messages simultaneously
- azure-devops - 启用自包含导致 dotnet 发布失败并使用私有 NuGet
- javascript - 400 error "You must pass a valid patch document in the body of the request."
- java - 检测 java web 应用程序中 cpu 使用率 15% 的原因
- python - 地理围栏根据距离和方位计算新的经度、纬度(Python - 库)
- azure - Can we copy Azure blobs from one storage account to other storage accounts in parallel from same machine?
- java - to disconnect the call programmatically in android for devices above Marshmallow
- java - 在 Sikuli 和 Selenium 之间切换时,如何导航到 Selenium 上一个会话中打开的确切页面?