Yipin
Yipin

不上班族 / 台灣人 / always 沒空

研究 fxhash boilerplate 筆記 (1)

解決 npm 後出現命令 npm update check failed 的方法

這幾天研究 fxhash 如何上傳的方法,在 youtube 上看到己有創作者(scoopta:fxhash.xyz/u/scoopta)分享如何使用 boilerplate:

fxhash tutorial - how to make generative art NFTs the EASY way

照著做的時候,總是在 npm i 出現安裝失敗訊息:

┌──────────────────────────────────────────────────────────┐

│        npm update check failed         │

│     Try running with sudo or get access      │

│     to the local update config store via     │

│ sudo chown -R $USER:$(id -gn $USER) /{username}/.config │

└──────────────────────────────────────────────────────────┘

失敗訊息的意思是,需要重新在 terminal 寫入 sudo chown -R $USER:$(id -gn $USER) /{username}/.config,將 .config 編輯權限打開

.config 在 mac folder 裡面是個隱藏檔,如果想在資料夾裡看到它可以用 Finder 進去 {username} 用 shift+command+. (dot)

CC BY-NC-ND 2.0 版权声明

喜欢我的文章吗?
别忘了给点支持与赞赏,让我知道创作的路上有你陪伴。

加载中…

发布评论