Open franktopel opened 6 years ago
cd server npm install
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
It seems that alot of dependencies are missing after
npm install
.I have done the following:
git clone git@github.com:gustaYo/vue-chess.git
cd vue-chess
npm install
yes | cp -rf -- copy_in_node_modules/ node_modules/
node server
So I did
npm install --save-dev compress
Only to find that many more packages seem to be missing even after doing a proper
npm install
.