Getting error while installing Vue-storefront by using CLI

Hi, I am following VSF documentation to install it locally by using cli command
npx @vue-storefront/cli init
npx @vue-storefront/cli init
but the cli command ends with following error:
Error: ENOTDIR: not a directory, rmdir '/media/tajdev/01D6E742CE302D90/Wo
rk/Project-Name/projectname/.env.example'
Code: ENOTDIR
Error: ENOTDIR: not a directory, rmdir '/media/tajdev/01D6E742CE302D90/Wo
rk/Project-Name/projectname/.env.example'
Code: ENOTDIR
OS: Ubuntu 22.04 Node version: 16.20.0 npm vesion: 8.19.4 yarn version: 1.22.19
16 Replies
rohrig
rohrig3y ago
Hi @Tajveez 👋 , do you have docker installed?
Tajveez
TajveezOP3y ago
yes i do. Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.3 docker-compose version 1.29.2, build unknown. I tried CLI with installing magento2 docker error as well but it gave permission error so i installed magento2 docker manually.
skirianov
skirianov3y ago
If you already installed magento manually, then select "no" when prompted to install magento locally. Otherwise, can you please take a look at the logs created
Tajveez
TajveezOP3y ago
Hi @skirianov , yes i am selecting no to install Magento locally. Following text is from CLI_logs.txt
v16.20.0

🙌 Node.js version is compatible
v16.20.0

🙌 Node.js version is compatible
skirianov
skirianov3y ago
Is it all? 🤔
Tajveez
TajveezOP3y ago
yeah
skirianov
skirianov3y ago
hmm...okay, let me look into it 🙏 I'll update you on GH issue
rohrig
rohrig3y ago
@Tajveez did you run cat CLI_logs.txt ?
Tajveez
TajveezOP3y ago
no opened with text editor. but same in cat command. from error text it seems the script is using rmdir command to delete file .env.example which fails because .env.example is a file not a directory.
skirianov
skirianov3y ago
yeah, I'm taking care of that @Tajveez - soon will push a fix can you try to run npx @vue-storefront/cli@4.2.2-rc.1 init ? I just published release candidate package
Tajveez
TajveezOP3y ago
let me check. it worked!!! Thanks guys
skirianov
skirianov3y ago
awesome! Releasing the patch then thanks!
Bekss
Bekss3y ago
i have same issue while installing project from documentation. Please help.
No description
Bekss
Bekss3y ago
Node.js version - 16.14
No description
skirianov
skirianov3y ago
Hey @Bekss that’s not the same error. Please create a new question and we will try to help

Did you find this page helpful?