-bash: framework7: command not found

I was trying to use framework7-cli. But it giving me this error.

-bash: framework7: command not found

Installed cordova

Installed Framework7-CLI

When creating App

Screenshot 2020-03-01 12.00.18

Please help me to figure it out.

What version of macOS?

macOS High Sierra - 10.13.6 (17G11023)

I’m guessing that you have write permission in that folder? Does it occur when you try the command in any other folder?

Folder has full permission to everyone. I’m not familiar with terminal commands and npm nodejs :zipper_mouth_face:

You mean there is no error installing framework7-cli and it should work without running any npm or node server?

Sorry I’m bit confused

Well ordinarily I would have downloaded & installed the latest version of NodeJS first. If you haven’t already done that, you’re possibly going to get errors if you run straight Cordova CLI commands too.

NodeJS re-installed twice. I was able to fix my issue by adding npm-packages/bin to $PATH

export PATH="$HOME/.npm-packages/bin:$PATH"

Now I’m able to run framework7 create --ui

Thanks!

1 Like