Skip to content

Vue cli is not installing #6368

@Roene

Description

@Roene

Version

4.5.12

Reproduction link

https://stackoverflow.com/questions/66722303/vue-cli-is-not-installing/66722328#66722328

Environment info

I am using Bash on Ubuntu on Windows

node -v
v15.12.0

npm -v
7.6.3

Steps to reproduce

I did everything as root user:

First I tried
npm install -g @vue/cli

But this returned an error
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: 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 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 ERR! code 127
npm ERR! path /root/.nvm/versions/node/v15.12.0/lib/node_modules/@vue/cli/node_modules/core-js
npm ERR! command failed
npm ERR! command sh -c node -e "try{require('./postinstall')}catch(e){}"
npm ERR! sh: 1: node: Permission denied

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-03-20T13_34_56_981Z-debug.log

Than I tried npm install -g --unsafe-perm @vue/cli but this also gave me the same error

After that I tried this but that didn't worked also.
npm config set user 0
npm config set unsafe-perm true

At least I tried
npm install vue
npm cache clean --force
npm install -g @vue/cli

But this also returned the same error.

What is expected?

Install Vue CLI

What is actually happening?

Getting an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions