我做npm publish了并通過了所有檢查,但隨后它回傳以下\
48 error code E403
49 error 403 403 Forbidden - PUT https://registry.npmjs.com/tictactoe - You do not have permission to publish "tictactoe". Are you logged in as the correct user?
50 error 403 In most cases, you or one of your dependencies are requesting
50 error 403 a package version that is forbidden by your security policy, or
50 error 403 on a server you do not have access to.
所以一開始我這樣做npm whoami了,它回傳makashi了我的用戶名,所以我知道我已經登錄了。
而且我的依賴項似乎很好,我可以匯入它們并匯入包并運行它。
{
"name": "tictactoe",
"version": "1.0.0",
"description": "Simple Tic Tac Toe module to play with ease!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "github.com/MakashiDev/tictactoe"
},
"keywords": [
"tictactoe",
"game",
"fun"
],
"author": "makashi",
"license": "MIT",
"dependencies": {
"prompt-sync": "^4.2.0"
}
}
有我的 package.json 一切似乎都很正常,我找不到任何不正確的地方。我對此很困惑,所以請幫助解決這個問題。
uj5u.com熱心網友回復:
TicTacToe 已經被當作包名。使用不同的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/490741.html
標籤:javascript 节点.js npm
上一篇:在docker中使用yarn時無法訪問Web應用程式
下一篇:為什么在將React-Scripts安裝為DevDependency后,我的控制臺中有“joinAdInterestGroup”腳本和跟蹤?
