npm init vue#latest command prompts but does not advance - vue.js

I tried to install vue.js with npm init vue#latest. It prompts me for the project name, but does not advance beyond that.
If I press ENTER, the console shows this:
Operation cancelled
npm ERR! code 1
npm ERR! path C:\Users\andres.marin
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-vue
I ran cmd.exe with administrator permissions.
node version 16.19.0, npm version is 8.19.3.
Thanks for your help.
I also tried change node version.

Have you tried the same commands by using powershell ? you might get different results. Good luck!

Related

Eror occurs when install nuxt and create app

Cannot instal nuxt and create app.
I used https://nuxtjs.org/docs/get-started/installation and https://github.com/nuxt/create-nuxt-app for creating app but this error occurs:
"create-nuxt-app"
is not internal or external
command executed by a program or batch file.
npm ERR! path C:\Users\Acer\Desktop\nuxt
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-nuxt-app "hacker-news"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Acer\AppData\Local\npm-cache\_logs\2022-12-03T06_03_59_129Z-debug-0.log```
Please help!
PS: node js and npm are installed
Figured it out.
npm cache clean --force (sudo if needed)
npm install

Couldn't find the binary git

I am new to react-native.
After I changed "rn-nodeify":"10.3.0" to package.json under devDependencies and run npm install
my project
I followed this tutorial
If I run this command npm i --save-dev rn-nodeify#latest then this npm i --save-dev rn-nodeify#latest the below error occured.
C:\Users\mahima\Desktop\react-native\rn-node-js-master>npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> NodeJSExampleApp#0.0.1 postinstall
> ./node_modules/.bin/rn-nodeify --install --hack
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code 1
npm ERR! path C:\Users\mahima\Desktop\react-native\rn-node-js-master
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c
./node_modules/.bin/rn-nodeify --install --hack
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mahima\AppData\Local\npm-cache\_logs\2022-08-29T06_39_05_153Z-debug-0.log
C:\Users\mahima\Desktop\react-native\rn-node-js-master>
How can I solve this error ?
Why not try this in package.json ?
"rn-nodeify":"10.3.0"
or any specific version which you want, usually package.json expects :
[packageName]:[version number]
alternative, why dont you try installing like this from terminal ?
npm i --save-dev rn-nodeify#latest
Make sure you have the GIT installed on your device and accessible globally. Try to type git --version in the CMD. If it returned that the command is not recognized and GIT already installed, then you need to add it to the PATH environment variable and make sure to try the command using a new CMD session

install #sencha/ext-react-modern for free trial of ExtReact failed

After requesting for the free trial version of ExtReact at https://www.sencha.com/products/extreact/evaluate/ an email providing a username and password was sent to my inbox.
Next, I opened my command line interface and tried to log in via command:
npm login --registry=https://npm.sencha.com --scope=#sencha
After inputting my username and password provided from the email. The output logged was this:
Logged in as username..gmail.com to scope #sencha on https://npm.sencha.com/.
Next I ran this npm command to install #sencha/ext-react-modern
npm install #sencha/ext-react-modern
Every time I try to npm install an error is thrown on the cmd line display:
npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://npm.sencha.com/#sencha%2fext-react-classic - unregistered users are not allowed to access package #sencha/ext-react-classic
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\joeChicago\AppData\Roaming\npm-cache\_logs\2020-06-24T12_19_08_309Z-debug.log
Please, I will really appreciate any help you can provide. Thanks alot!
Check the link:- ExtReact - npm ERR! 403 403 Forbidden
https://docs.sencha.com/extwebcomponents/7.0.0/guides/open_tooling_npm/npm_help.html
Windows (Command Prompt)
Run del %HOMEPATH%.npmrc - removes the stored npm repository credentials. This location may be different on your system.(or manually delete this file finding it in local computer)
Run npm cache clean --force or rmdir /s /q %HOMEPATH%\AppData\Roaming\npm - clean the npm packages.
Run rmdir /s /q %HOMEPATH%\AppData\Roaming\npm-cache - clean the npm cache by removing it.
Run npm login --registry=https://npm.sencha.com --scope=#sencha - log back into the repository.
Run npm install -g #sencha/ext-gen or npm install -g #sencha/ext-react-gen

npm ERR! code ENOLOCAL while installing frontity

C:\WINDOWS\system32>npx frontity create my-app && cd my-app
npm ERR! code ENOLOCAL
npm ERR! Could not install from "wolf\AppData\Roaming\npm-cache_npx\4608" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Mystic wolf\AppData\Roaming\npm-cache_logs\2019-12-13T06_42_07_591Z-debug.log
Install for frontity#latest failed with code 1
i have tried clearing npm cache,
upgrading npm version
but cant solve it.
i feel like there is something is wrong with package.json
how to fix?
It seems like it is a problem of npx when the user folder contains an space (Mystic wolf)
You need to move the npm cache to a folder without spaces.
First, open cmd as Administrator.
Search for cmd
Right click
Choose “Run as Administrator”
Enter your password
run-as-administrator-screenshot
Then enter these commands in the console:
> mklink /J "C:\Users\mystic-wolf" "C:\Users\Mystic wolf"
> npm config set cache C:\Users\mystic-wolf\AppData\Roaming\npm-cache
> npm config set prefix C:\Users\mystic-wolf\AppData\Roaming\npm
> npm cache clean --force
You have more info here: https://community.frontity.org/t/error-running-npx/512/8.
Try using this command:
npm i #frontity/core
It Works.

Installing Emmet and other packages on Atom Text Editor

I'm having issues installing emmet.io as a package on Atom Text Editor (Win7 x64).
Any idea of how I could do this?
I get always an error message
`npm http GET https://registry.npmjs.org/emmet
npm http 304 https://registry.npmjs.org/emmet
npm http GET https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/requirejs
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.`
`npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\OMARSERVICE\\.atom\\.apmrc" "install" "C:\\Users\\USERNAME\\.atom\\.node-gyp\\.atom\\.apm\\emmet\\2.1.3\\package.tgz" "--target=0.11.13" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\Users\USERNAME~1\AppData\Local\Temp\apm-install-dir-114726-7860-1j2mfss
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ENOGIT`
OK, I found a solution of how install any package on Atom.io
Instruction for Windows 7 (x32/x64)
Note: Make sure Atom.io is closed.
Download https://windows.github.com/
Run the installation as standard
Run Git Shell (figure #1)
Locate the directory via Git Shell: cd ~/.atom/packages
Run git clone https://github.com/emmetio/emmet-atom or whatever package you are looking forward to install (figure #2)
Next, got to cd emmet-atom (figure #3)
Lastly run npm install (figure #4)
You can follow this instructions by any package as long its GitHub like this https://github.com/github-user/package-name. In short copy the url of your appropriate package.
That's it!!
Screenshots:
4
In your question, Atom/apm/npm is complaining about not being able to find the git command. It needs the git executable to install the package from Github.
To fix this, you need to make sure that
Git is installed on your machine
The git executable is on your path
If you have GIT installed on your computer you most likely need to go to your Control Panel\System and Security\System Click on Advanced system setting click on Environment Variables and under system NOT USER variables select the Path variable and click edit and add C:\Program Files (x86)\Git\bin;(or where ever your git.exe file exists) to the string.
I have the same problem. I solved it this way: install git 2.1.3 from repo, then copy&paste the path of bin git into C:\Program Files (x86)\Git\bin insdide of path on environment variables. After reboot your PC , open atom text edit and search in settings -> package, write emmet, click on button, install it and now it works, emmet is installed.