Reputation: 11
Nuxt.js/Vue.js app: command not found
Error:
dell@Himanshu-sharma:~/Workspace/Web/vue-nuxt$ sudo npm i create-nuxt-app -g[sudo] password for dell: /home/dell/.npm-global/bin/create-nuxt-app -> /home/dell/.npm-global/lib/node_modules/create-nuxt-app/cli.js
[email protected] added 413 packages in 28.445s dell@Himanshu-sharma:~/Workspace/Web/vue-nuxt$ create-nuxt-app myapp bash: create-nuxt-app: command not found
Upvotes: 1
Views: 1359
Reputation: 3092
The directory where it installed/linked the tool needs to be in your PATH
variable if you want to call it just by its name.
So either:
/home/dell/.npm-global/bin
to your PATH
/home/dell/.npm-global/bin/create-nuxt-app myapp
Upvotes: 1