Unable to create nuxt-app using npm command line - npm

Command:
npx create-nuxt-app project-name
Error:
sh: create-nuxt-app: command not found
I'm trying to resolve the issue by running the following command:
npm i -g create-nuxt-app
But it gets stuck at the following step:
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
(##################) ⠋ reify:rxjs: timing reifyNode:node_modules/create-nuxt-app/node_modules/lodash Completed in 461ms

This command actually resolved the issue.
npm i -g create-nuxt-app
Issue was resolved. I just needed to wait bit longer

Related

I am trying to install vue3 js

I am trying to install vue3 js. but unfortunately I am getting an error please help me how can i resolve ? thanks.
developer#developer-ThinkCentre-M93p:~$ npm install -g #vue/cli
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/joi#15.1.1: Switch to 'npm install joi'
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/address#2.1.4: Moved to 'npm install #sideway/address'
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm ERR! Unexpected end of JSON input while parsing near '...8HIwwH2SLKEsPpZqiiIW8'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/developer/.npm/_logs/2021-01-27T02_11_15_446Z-debug.log
install vue-cli if you haven't yet
sudo npm install -g #vue/cli
OR update to latest
sudo npm update -g #vue/cli
then create a new project with
vue create hello-world
then select vue 3 project
Including comment from #Eazash:
You need to verify your npm cache with npm cache verify and then try installing vue-cli. If that doesn't work, try clearing the cache altogether with npm cache clean --force
could also try with sudo privileges: sudo npm cache verify and sudo npm cache clean --force

cb() never called! when installing #vue/cli

Newbie here, I am trying to install vue cli for frontend development with npm, but it is throwing an error.
Here is the output of sudo npm install -g #vue/cli
[18:00 vue]$ sudo npm install -g #vue/cli
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/joi#15.1.1: Switch to 'npm install joi'
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/address#2.1.4: Moved to 'npm install #sideway/address'
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-18T13_06_37_662Z-debug.log
Here is a complete log
I tried with and without sudo, the same error.
My machine runs Manjaro KDE 20.2, npm version 6.14.9, node v15.4.0. I have tried:
retrying to see if it works this time
sudo npm cache verify and sudo npm cache clean --force
removing /usr/lib/node_modules
reinstalling node and npm
anything else i found on the internet
I'm stuck on this error for a few days, any help is appreciated.
It's interesting that it works without -g flag, installing to current folder, but I can't figure out how to use vue command then.
Okay, i removed that Manjaro, and grabbed the latest version of ubuntu, this solved my problem, will never install Manjaro again.

trying to install vue cli using npm install -g #vue/cli but this error occurs

I am trying to install vue cli using npm install -g #vue/cli but this error occurs:
npm WARN deprecated #hapi/joi#15.1.1: joi is leaving the #hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/address#2.1.4: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/typescript (over 30000ms)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\umage\AppData\Roaming\npm-cache\_logs\2020-10-17T16_20_00_242Z-debug.log
What could be the problem?

I'm trying to do npm install -g #angular/cli and an error appears : I'm tying npm cache clear, but same error appears. what will be the solution?

D:\Angular\interpolation> npm install -g #angular/cli
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
C:\Users\AppData\Roaming\npm\ng -> C:\Users\AppData\Roaming\npm\node_modules#angular\cli\bin\ng
#angular/cli#10.1.4 postinstall C:\Users\AppData\Roaming\npm\node_modules#angular\cli
node ./bin/postinstall/script.js
#angular/cli#10.1.4
updated 1 package in 18.702s

Give me error while install polymer

E:>npm install -g polymer-cli
npm WARN deprecated babel-preset-es2015#6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated bower#1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm ERR! Unexpected end of JSON input while parsing near '..."ordered-read-streams'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2017-12-23T05_41_50_907Z-debug.log