Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PlasticHeart's avatar

npm init vue@latest doesn't work in Laravel Sail

What I can´t do work npm init vue@latest in Laravel Sail, I do a regular instalation of Laravel Sail Dockerized (https://laravel.com/docs/9.x/installation#getting-started-on-windows) but whe I try run that command in console I take this error

# npm init vue@latest
sh: 1: create-vue: Permission denied
npm ERR! code 127
npm ERR! path /var/www/html
npm ERR! command failed
npm ERR! command sh -c -- create-vue

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-08-28T00_35_39_470Z-debug-0.log
0 likes
4 replies
Shivamyadav's avatar

Try out this cmd I have installed vue by this cmd

npm install -g @vue/cli

Please or to participate in this conversation.