localhost
localhost

Reputation: 861

Vue installing but -v and create not working

I am trying to install vue, it says it has added vue package but when I do npm i -g @vue/cli it gives a long list of error which ends with

npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/@vue/cli/node_modules/atob/bin/atob.js' 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/ammar/.npm/_logs/2019-01-13T18_54_35_766Z-debug.log

I am using macOS Mojave

Upvotes: 0

Views: 217

Answers (1)

vmcruz
vmcruz

Reputation: 41

Try installing using your sudo credentials:

sudo npm i -g @vue/cli

Upvotes: 0

Related Questions