【发布时间】:2020-08-17 15:45:29
【问题描述】:
我通过 Github 的包管理器发布了一个包,它似乎可以工作。它出现在repo's web page 和my profile page 上。当我跑步时
npm install @franklinharvey/time-remaining@1.0.0
在本地它可以工作,但是当我在 Replit 或 CodeSandbox 等新环境中尝试它时,它不会出现。它也没有出现在npmjs.com
这里有一些配置文件
.npmrc
registry=https://npm.pkg.github.com/franklinharvey
.yarnrc
"@franklinharvey:time-remaining" "https://npm.pkg.github.com"
package.json(部分)
"name": "@franklinharvey/time-remaining",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"repository": {
"url": "git@github.com:franklinharvey/time-remaining.git"
}
.npmignore
.gitignore
src/
*.log
*.tsbuildinfo
package-lock.json
yarn.lock
coverage
node_modules
【问题讨论】:
-
这里有同样的问题。
-
你解决了这个问题吗?我也遇到了同样的问题。
标签: npm github-package-registry