Giter VIP home page Giter VIP logo

Comments (3)

rlindskog avatar rlindskog commented on May 12, 2024 1

Fixed the snackbar problem. Just changed toast to notification like

computed: {
  snackbar: {
    get () {
      return this.$store.state.notification.snackbar
    },
    set (value) {
      this.$store.commit('notification/UPDATE_SNACKBAR', value)
    }
}

As for mongo, try running npm run stop-db then npm run start-db. If that doesn't work, try deleting the db folder with and creating another with data and logs folders in it like

├── db/
│   ├── data/
│   ├── logs/

then npm run start-db

from vueniverse.

JLKM avatar JLKM commented on May 12, 2024

Thank you very much for your fast assistance.

I now managed to get through to the rocket on localhost:3000 in Windows. And creating a user also went well.

For your information: npm run stop-db og npm run start-db didn't work out (see log below). However, firing up mongod on a blank Mongo-database and in a separate terminal-window before npm run dev did the trick.

PS F:\frontend\vue\fullstack\vueniverse> npm run stop-db

> [email protected] stop-db F:\frontend\vue\fullstack\vueniverse
> mongo --eval "db.getSiblingDB('admin').shutdownServer()"

MongoDB shell version v3.4.7
connecting to: mongodb://127.0.0.1:27017
2017-09-01T10:51:16.213+0200 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017 after 5000ms millisec
onds, giving up.
2017-09-01T10:51:16.214+0200 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017, connect
ion attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] stop-db: `mongo --eval "db.getSiblingDB('admin').shutdownServer()"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] stop-db script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jan\AppData\Roaming\npm-cache\_logs\2017-09-01T08_51_16_236Z-debug.log
PS F:\frontend\vue\fullstack\vueniverse> npm start-db

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
    explore, get, help, help-search, i, init, install,
    install-test, it, link, list, ln, login, logout, ls,
    outdated, owner, pack, ping, prefix, prune, publish, rb,
    rebuild, repo, restart, root, run, run-script, s, se,
    search, set, shrinkwrap, star, stars, start, stop, t, team,
    test, tst, un, uninstall, unpublish, unstar, up, update, v,
    version, view, whoami

npm <command> -h     quick help on <command>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    C:\Users\Jan\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

[email protected] C:\Users\Jan\AppData\Roaming\npm\node_modules\npm
PS F:\frontend\vue\fullstack\vueniverse> npm run start-db

> [email protected] start-db F:\frontend\vue\fullstack\vueniverse
> mongod --fork --dbpath ./db/data --logpath ./db/logs/mongodb.log

Error parsing command line: unrecognised option '--fork'
try 'mongod --help' for more information
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start-db: `mongod --fork --dbpath ./db/data --logpath ./db/logs/mongodb.log`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start-db script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jan\AppData\Roaming\npm-cache\_logs\2017-09-01T08_51_49_951Z-debug.log
PS F:\frontend\vue\fullstack\vueniverse> npm run start-db

> [email protected] start-db F:\frontend\vue\fullstack\vueniverse
> mongod --fork --dbpath ./db/data --logpath ./db/logs/mongodb.log

Error parsing command line: unrecognised option '--fork'
try 'mongod --help' for more information
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start-db: `mongod --fork --dbpath ./db/data --logpath ./db/logs/mongodb.log`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start-db script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jan\AppData\Roaming\npm-cache\_logs\2017-09-01T08_54_20_341Z-debug.log
PS F:\frontend\vue\fullstack\vueniverse> npm run dev

> [email protected] dev F:\frontend\vue\fullstack\vueniverse
> backpack dev



 DONE  Compiled successfully in 2336ms                                                              11:12:55

Server listening on http://127.0.0.1:3000
Build completed in 22.305s



 DONE  Compiled successfully in 22302ms                                                             11:13:27

fetchUser pending...
fetchUser success!

from vueniverse.

rlindskog avatar rlindskog commented on May 12, 2024

It looks like --fork is actually a UNIX thing, so it is necessary for windows user to start mongo in a separate terminal window for now.

from vueniverse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.