0

I use laravel 5.3 and vue.js 2

My package.json like this :

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "accounting": "^0.4.1",
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-14",
    "laravel-elixir-vue-2": "^0.3.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "lodash": "^4.16.2",
    "next-tick": "^1.0.0",
    "pusher-js": "^4.0.0",
    "vue": "^2.1.6",
    "vue-resource": "^1.0.3",
    "vuex": "^2.0.0"
  },
  "dependencies": {
    "laravel-echo": "^1.1.4",
    "pusher-js": "^4.0.0",
    "vee-validate": "^2.0.0-beta.17",
    "vuejs-paginator": "^2.0.0"
  }
}

I want to add vue-router in package.json

How can I do it?

1 Answer 1

2

The simplest solution might be using NPM or Yarn for this:

npm install vue-router --save-dev

yarn add vue-router --dev

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.