LoginSignup
0
0

More than 3 years have passed since last update.

Nuxt.jsでpackage.jsonが見つからないエラーが出るときの対処法

Posted at

npm run devするとError: Cannot find module ‘../package.json’と言われる

以下のようにnode_modulesを削除して、再インストール(npm install)するもダメだった

rm -rf node_modules
npm install

ビルドしていないために失敗していたので再ビルド

npm rebuild

違うプロジェクトファイルいじった後に帰ってきたとき起こってなんでやってなった

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0