MatteoGabriele / vue-gtag

Global Site Tag plugin for Vue (gtag.js)
https://matteo-gabriele.gitbook.io/vue-gtag/
MIT License
864 stars 64 forks source link

Can't install #195

Closed artrayd closed 3 years ago

artrayd commented 3 years ago

Description

Can't install.

After running this command "npm install vue-gtag" getting error: "Missing write access to node_modules/vuex." And I'm not using Vuex for this project.

Tried to run also "sudo", didn't help. Tried to create vuex folder manually, got other error.

Error text

Getting this error: npm WARN checkPermissions Missing write access to /Users/newuser/node_modules/vuex npm WARN presentbox@0.0.0 No repository field. npm ERR! code ENOENT npm ERR! syscall access npm ERR! path /Users/newuser/node_modules/vuex npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, access '/Users/newuser/node_modules/vuex' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /Users/newuser/.npm/_logs/2020-09-13T06_36_14_708Z-debug.log

Environment

Vue CLI with router and without VUEX

artrayd commented 3 years ago

Solved it by running NPM install, seems like I did something wrong. Package is working great 👍