実現したいこと
正常にclaspにログインしたいよ(泣)
GASとTSを使って、ラインbotを作る予定です。
既にこの段階で出来ない....
発生している問題・分からないこと
claspログインできない。
恐らく、SSL/TLS証明書の検証に失敗してるっぽいです。
エラーメッセージ
error
1PS C:\Users\eisuke0904\Desktop\個人開発プロジェクト\clasp-240418> yarn install 2yarn install v1.22.22 3[1/4] Resolving packages... 4[2/4] Fetching packages... 5e same destination "C:\\Users\\eisuke0904\\AppData\\Local\\Yarn\\Cache\\v6\\npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity\\node_modules\\strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping. 6error Error: unable to verify the first certificate 7 at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34) 8 at TLSSocket.emit (node:events:518:28) 9 at TLSSocket._finishInit (node:_tls_wrap:1085:8) 10 at ssl.onhandshakedone (node:_tls_wrap:871:12) 11info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 12
該当のソースコード
clasp login
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
npm config set strict-ssl false
yarn config set strict-ssl false
試したが変わらず
補足
win11
yarn1.22系以上
C:\Users\eisuke0904>yarn -V
yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.08s.
warning Pattern ["strip-ansi@^6.0.1"] is trying to unpack in the same destination "C:\Users\eisuke0904\AppData\Local\Yarn\Cache\v6\npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity\node_modules\strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
こんな警告もでてました
あなたの回答
tips
プレビュー