Comments (3)
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.
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.
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)
- npm run dev - error in ./src/server/index.js HOT 3
- Create admin not login HOT 1
- Hey, nice project! HOT 1
- social authentication integration HOT 2
- [bug] I broke the sign in? HOT 1
- How to debug express HOT 1
- Implementation question HOT 1
- Problem in Production HOT 9
- add 2fa for new accounts
- UI improvements
- Production usage
- Live demo error
- Deploy with NOW
- Vueniverse v2 HOT 1
- Live Demo 404 Page Not Found
- Nuxt Generate Support HOT 1
- npm run dev HOT 1
- Argon2 seems to be a show stopper HOT 5
- Add Postgres option.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vueniverse.