-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Description
Version
3.1.1
Node and OS info
8.12.0
Steps to reproduce
vue add vuex
What is expected?
Vuex package should be installed in the node_modules
folder.
What is actually happening?
Only the files were changed to have Vuex be recognized by Vue (i.e. Vue.use(Vuex)
), the store.js
was created as well and the package.json
has the Vuex version. But the actual package was not installed in the node_modules
folder which caused an error. The Terminal (Mac OS) has suggested to do an npm install vuex --save
just like when vue add router
was executed, but vuex-router
actually got installed on the node_modules
folder.
The impression was that vue add vuex
would install the module as well as update files and add necessary files such as the store.js
. It can take a while for some people to not realize that the module needed to be installed in the npm way because everything looked good including the package.json
being updated. There are so many modules in node_modules
that it can also take time just to prove to oneself that Vuex was actually not installed.