Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

npm run dev error... #72

Closed
sizz1324 opened this issue Aug 24, 2017 · 8 comments
Closed

npm run dev error... #72

sizz1324 opened this issue Aug 24, 2017 · 8 comments

Comments

@sizz1324
Copy link

i just install and run npm run dev pop this error

$ npm run dev

vue-express-mongo-boilerplate@0.9.0 dev D:\vue\theone\vue-express-mongo-boilerplate
cross-env NODE_ENV=development nodemon --debug

[nodemon] 1.11.0
[nodemon] to restart at any time, enter rs
[nodemon] watching: D:\vue\theone\vue-express-mongo-boilerplate\server/**/* config.js webpack.*.config.js
[nodemon] starting node --debug server/index.js
(node:14892) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead.
[nodemon] app crashed - waiting for file changes before starting...

someone help me...

@drginm
Copy link

drginm commented Aug 24, 2017

What version of node are you using?
I had a similar issue with the latest version of node (v8), if you use 6 or 7 it should work.

@icebob
Copy link
Owner

icebob commented Aug 25, 2017

I think, you need to follow the instructions in the warning:
"DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead."

@sizz1324
Copy link
Author

i change to v 6 and it run! thank you.

and thankyou icebob!

@ApayRus
Copy link

ApayRus commented Sep 6, 2017

I had same problem. Then I replaced --debug in package.json with --inspect (after @icebob advice), then appears this:
(I was using node v8.2.1, but after downgrade to 6.11.3 result still the same):
screenshot from 2017-09-06 04-27-59

@icebob
Copy link
Owner

icebob commented Sep 6, 2017

@Aparus It is an other issue. Your port 3000 is in use.

@ApayRus
Copy link

ApayRus commented Sep 6, 2017

ooops)
after I fixed it, there is new one
[MongoError: connect ECONNREFUSED 127.0.0.1:27017]
Sorry if question is naive, but i'm new at this stack,
I have found this issue , Could not connect to MongoDB!
@icebob please can you explain how to launch mongoDB locally and connect it with this boilerplate?

@icebob
Copy link
Owner

icebob commented Sep 6, 2017

You need to install MongoDB server locally. Download and install it. Or run it in Docker.

@ApayRus
Copy link

ApayRus commented Sep 6, 2017

@icebob thank you. I launched the boilerplate ) all works good. Now turn to learn vue and express )

@icebob icebob closed this as completed Sep 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants