nuxt.jsを使ってみようと
npm install -g vue-cli
vue init nuxt-community/starter-template sample
cd sample npm install
npm run dev
という流れで試してみたのですが
sh: nuxt: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! sample@1.0.0 dev: `nuxt` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the sample@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /Users/hogehoge/.npm/_logs/2019-04-26T23_16_53_119Z-debug.log
とエラーが出てきました。
このエラーはなぜ出てくるのでしょうか?
いろいろググってみましたがジャストにヒットするものがなかったです。
方法としてはnodeやnpmのバージョンを上げることは試してみたものの同じエラーでした。
環境はMacos mojave
node v11.11.0
npm 6.9.0
です。
必要な情報があれば追記していきます。
どのように解決していけばよろしいでしょうか?
また、適切な調べ方などがあればこ回答いただけなでしょうか?
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/23 02:11