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
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