Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node server throws error - alot of dependencies missing #4

Open
franktopel opened this issue Mar 10, 2018 · 2 comments
Open

node server throws error - alot of dependencies missing #4

franktopel opened this issue Mar 10, 2018 · 2 comments

Comments

@franktopel
Copy link

franktopel commented Mar 10, 2018

It seems that alot of dependencies are missing after npm install.

I have done the following:

  1. git clone git@github.com:gustaYo/vue-chess.git
  2. cd vue-chess
  3. npm install
  4. yes | cp -rf -- copy_in_node_modules/ node_modules/
  5. node server
> node server
module.js:540
    throw err;
    ^

Error: Cannot find module 'compression'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at __dirname (/Users/connexo/Sites/vue-chess/server/app/index.js:11:16)
    at Object.<anonymous> (/Users/connexo/Sites/vue-chess/server/app/index.js:95:3)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)

So I did

  1. npm install --save-dev compress

Only to find that many more packages seem to be missing even after doing a proper npm install.

@franktopel franktopel changed the title node server throws error node server throws error - alot of dependencies missing Mar 10, 2018
@gil2gm
Copy link

gil2gm commented Jun 7, 2018

cd server
npm install

@cgencer
Copy link

cgencer commented Aug 1, 2018

npm run build after the above gives these errors:

ERROR in .//vue-material-components/dist/vue-material-components.js
Module not found: Error: Cannot resolve module 'Vue' in /home/vc/node_modules/vue-material-components/dist
@ ./
/vue-material-components/dist/vue-material-components.js 3:27-41

ERROR in .//babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/game/index.vue
Module not found: Error: Cannot resolve module 'garbochess' in /home/vc/src/components/game
@ ./
/babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/game/index.vue 19:18-39

ERROR in .//babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/home/boardVisor.vue
Module not found: Error: Cannot resolve module 'garbochess' in /home/vc/src/components/home
@ ./
/babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/home/boardVisor.vue 15:18-39

ERROR in .//babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/puzzles/puzzle.vue
Module not found: Error: Cannot resolve module 'garbochess' in /home/vc/src/components/puzzles
@ ./
/babel-loader/lib?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!.//eslint-loader!./src/components/puzzles/puzzle.vue 15:18-39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants