Himanshu sharma
Himanshu sharma

Reputation: 11

How do I resolve this error running create-nuxt-app?

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

Answers (1)

Tobias K.
Tobias K.

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:

  • Add /home/dell/.npm-global/bin to your PATH
  • Call it via its "full name/path": /home/dell/.npm-global/bin/create-nuxt-app myapp

Upvotes: 1

Related Questions