実現したいこと
平野 昌士. フロントエンド開発のためのセキュリティ入門 知らなかったでは済まされない脆弱性対策の必須知識 (p.38). 株式会社 翔泳社. Kindle 版.
を参照して、package jsonをインストールしようとしているがインストールできない。
発生している問題・分からないこと
テキスト通りに環境構築を実施しているものの、エラーが発生。
解決方法が不明であり力を貸していただきたい。
エラーメッセージ
error
1PS C:\Users\○○\Documents\自分用\勉強関連\security-handson> npm -v 210.5.0 3PS C:\Users\○○\Documents\自分用\勉強関連\security-handson> node -v 4v20.12.2 5PS C:\Users\○○\Documents\自分用\勉強関連\security-handson> npm init -y 6npm ERR! code ENOENT 7npm ERR! syscall open 8npm ERR! path C:\Users\○○\Documents\自分用\勉強関連\security-handson\package.json 9npm ERR! errno -4058 10npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\○○\Documents\自分用\勉強関連\security-handson\package.json' 11npm ERR! enoent This is related to npm not being able to find a file. 12npm ERR! enoent 13 14npm ERR! A complete log of this run can be found in: C:\Users\○○\AppData\Local\npm-cache\_logs\2024-05-02T01_43_28_143Z-debug-0.log 15PS C:\Users\○○\Documents\自分用\勉強関連\security-handson>
該当のソースコード
特になし
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
npm init -y について検索し、エラー解消を試みましたが類似事例がなさそうでうまくいきませんでした。
補足
特になし
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2024/05/06 05:49