![](/img/trans.png)
[英]Nuxt3 and Firebase Cloud Function Hosting: How to access private key in .env file?
[英]npm ERR! Invalid package name - When deploying Nuxt3 project in firebase hosting
在 firebase hosting 上部署我的 Nuxt3 項目已經成功,但是,在我安裝了@notionhq/client
以使用 Notion API,然后 $ firebase deploy 之后,出現了這個錯誤。
i functions: updating Node.js 16 function server(us-central1)...
Build failed: npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "@notionhq/client/build" of package "@notionhq/client/build@2.2.2": name can only contain URL-friendly characters.
我已經為此苦苦掙扎了 2 天。希望有人能告訴我修復它的方法。 謝謝。
從package.json in.output/server中刪除“@notionhq/client/build”后部署成功...我通過搜索https://www.npmjs.com/
中不存在“@notionhq/client/build”。 真不知道為什么build之后會出現@notionhq/client/build。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.