Eror occurs when install nuxt and create app - vue.js

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

Related

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

Unable to update or execute the 'expo' command in command prompt

For the first time i tried to install the expo-cli on my project directory it worked. I can use expo init to make my first react native app in my command prompt, and run the app with expo start. But now when i have some new project to make with the 'expo' command like expo init or expo start or something else, it didn't work anymore. When i tried to type and enter the expo command, its always be
'expo' is not recognized as an internal or external command, operable program or batch file.
And now when i tried to update the expo-cli with npm install -g expo-cli a warning of error appeared.
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Users\ACER\AppData\Roaming\npm\node_modules\expo-cli
npm ERR! dest C:\Users\ACER\AppData\Roaming\npm\node_modules\.expo-cli-foqoNR8w
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\ACER\AppData\Roaming\npm\node_modules\expo-cli' -> 'C:\Users\ACER\AppData\Roaming\npm\node_modules\.expo-cli-foqoNR8w'
npm ERR! [Error: EPERM: operation not permitted, rename 'C:\Users\ACER\AppData\Roaming\npm\node_modules\expo-cli' -> 'C:\Users\ACER\AppData\Roaming\npm\node_modules\.expo-cli-foqoNR8w'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\ACER\\AppData\\Roaming\\npm\\node_modules\\expo-cli',
npm ERR! dest: 'C:\\Users\\ACER\\AppData\\Roaming\\npm\\node_modules\\.expo-cli-foqoNR8w'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ACER\AppData\Local\npm-cache\_logs\2021-01-10T17_18_03_575Z-debug.log
This preventing me from doing the installation of react navigation and make a new project by using 'expo' command. And i've been search this problem on and tried to solve it but it didn't work on any various ways that i've tried. I've tried to reinstall the expo-cli but it didn't work, i've tried to use yarn as well but still it didn't work. I've been re-added the path for the npm and even tried to reinstall nodejs and use any various code for updating and installing the 'expo-cli' but it didn't work as expected.
Any suggest on how do i can fix this problem ?
Run your command line as Admin and then do the following:
npm remove -g expo-cli to remove the existing CLI
and then npm i -g expo-cli to reinstall the Expo CLI.
Then you can simply login via expo login (if you were logged in) and take off from where you were!
I delete the expo file on the path :
C:\Users\ACER\AppData\Roaming\npm\node_modules\expo-cli
C:\Users\ACER\AppData\Roaming\npm\node_modules\.expo-cli-foqoNR8w
the file that i deleted : expo-cli & .expo-cli-foqoNR8w
And then try to install the expo-cli again with npm install --global expo-cli then it work. Now i can use my expo start or whatever code with 'expo' in it. And also now i can install react navigation on my project directory. And i'm running the installation by using command prompt run as admin.

Vue CLI error creating new project (npm error)

Please help me on this. I can't create a new Vue CLI project. It previously works good! Now not working...
Vue CLI v4.2.3
✨ Creating project in /Web develop/Vue Projects/new.
🗃 Initializing git repository...
⚙️ Installing CLI plugins. This might take a while...
npm ERR! Unexpected end of JSON input while parsing near '...loader":"~0.8.0","js-'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Malaka/.npm/_logs/2020-03-25T06_30_10_474Z-debug.log
ERROR command failed: npm install --loglevel error
seems a cache error
run
npm cache clean --force
then try create the project again
That's weird. I'd just try re-installing the Vue cli package.
There is a deprecated vue-cli package, it could be you have that installed rather than the official one #vue/cli.
Either way just uninstall it with
npm uninstall [your-vue-cli-package] -g
Then re-install it again.
npm install #vue/cli -g
lets try this
$ sudo npm uninstall -g vue
$ sudo npm uninstall -g vue-cli
$ sudo npm uninstall -g #vue/cli
$ sudo npm cache clean --force
$ sudo npm install -g vue
$ sudo npm install -g #vue/cli
problem log:
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DraKoan\AppData\Local\npm-cache\_logs\2022-04-19T17_09_34_388Z-debug-0.log
ERROR Error: command failed: npm install --loglevel error --legacy-peer-deps
Error: command failed: npm install --loglevel error --legacy-peer-deps
at ChildProcess.<anonymous> (C:\Users\DraKoan\AppData\Roaming\npm\node_modules\#vue\cli\lib\util\executeCommand.js:138:16)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.cp.emit (C:\Users\DraKoan\AppData\Roaming\npm\node_modules\#vue\cli\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Solve:
check proxy at config
npm config edit
npm config --global edit
clean and set proxy
npm config set proxy null
npm config set proxy false

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.

Missing write access error on nativescript install

When I attempt to install nativescrtipt by running npm i -g nativescript, I receive the following error:
npm WARN checkPermissions Missing write access to
/usr/local/lib/node_modules/nativescript
npm ERR! path /usr/local/lib/node_modules/nativescript
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access
'/usr/local/lib/node_modules/nativescript'
npm ERR! enoent This is related to npm not being able to find a
file.
I have tried to run the command as sudo and receive the same result. I also attempted to add write permission to the node_modules directory.
I am running node v10.6.0 on macOS High Sierra.
Add sudo command to allow you run the program with security privilege
sudo npm i -g nativescript
I followed this link: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally to resolve the issue.
I installed nvm and updated to the latest version of node. Then, the command npm i -g nativescript successfully installed the nativescript-cli.
The issue does not appear to be coming from nativescript, but an issue with my node installation.
Run the following command sudo npm i -g nativescript
This will forcefully with security permission install the missing scripts to run the npm command again with no bugs or warnings