Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Vue CLI erro ao instalar linux

Boa Tarde !!

Estou tentando instalar o Vue CLI no linux, mas quando rodo o comando npm install -g @vue/cli, tenho retorno de erro e não consigo prosseguir. nodejs: v10.19.0 vue: v10.19.0

Ao tentar atualizar com vue upgrade, nada é retornado.

Alguém consegue me ajudar?

3 respostas

Oi Verônica, tudo certo?

Poderia mandar aqui qual o erro que retorna para eu conseguir te auxiliar melhor?

Fico no aguardo, abraços =)

Olá Giovanna, tudo certo sim e com você?

Segue o erro completo:

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead npm WARN deprecated apollo-cache-control@0.14.0: The functionality provided by the apollo-cache-control package is built in to apollo-server-core starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details. npm WARN deprecated apollo-tracing@0.15.0: The apollo-tracing package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details npm WARN deprecated graphql-extensions@0.15.0: The graphql-extensions API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/ npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /home/mx-dev006/.npm/logs/2021-08-10T1709_20_257Z-debug.log

solução!

Oi Verônica, obrigada pelo retorno!

Me parece um erro de permissão! Tente rodar o seguinte comando:

sudo npm install -g @vue/cli

Isso irá fazer com que rode o comando como administrador, logo depois você precisa digitar sua senha e pressionar enter, creio que irá funcionar!

Bons estudos =)