nuxt-community / electron-template

Electron starter with nuxt.js
MIT License
252 stars 31 forks source link

Cannot find module 'nuxt' #12

Closed lyric-li closed 7 years ago

lyric-li commented 7 years ago

This problem occurs when I try to pack.

image

Steps to Reproduce:

npm run package:win (npm run build && electron-packager ./ nuxt-cli --platform=win32 --arch=x64 --version=1.7.8 --out=./ --overwrite --icon=favicon.ico --ignore=node_modules --prune)

image

This question is available on Nuxt.js community (#c10)
lyric-li commented 7 years ago

I have solved it.

alexchopin commented 7 years ago

Hi @lyric-index, Can you explain how you've solved it for other users and close the issue? Thanks.

jeehoonkang commented 7 years ago

I'm experiencing the same symptom. @lyric-index please share your solution 😃

lyric-li commented 7 years ago

Hi @alexchopin @jeehoonkang , I just removed --ignore=node_modules , then changed Node version = v6.11.4 and NPM version = 3.10.10. But, the package is a little big. ps: We just had a short vacation(National Day), so I reply you late, sorry for that.

kkcy commented 5 years ago

hey @lyric-li , could you share a little bit more on the solution, facing the same issue with both electron-packager and electron-builder

capture

kkcy commented 5 years ago

hey @lyric-li , could you share a little bit more on the solution, facing the same issue with both electron-packager and electron-builder

capture

sorry. just a silly mistake. nuxt was added as devDependencies instead of dependencies