I was installing NextJS when I encountered the following error:
D:\Codes\React\Learn>npx create-next-app
npm WARN using --force Recommended protections disabled.
npm WARN using --force Recommended protections disabled.
npm ERR! code E404
npm ERR! 404 File Not Found - GET https://skimdb.npmjs.com/registry/create-next-app
npm ERR! 404
npm ERR! 404 'create-next-app#latest' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache\_logs\2023-02-06T12_41_40_938Z-debug-0.log
Can anyone help me?
I wanted to work with NextJS......but I encountered this error!
You should give directory address in the installation command ,
Try : npx create-next-app#latest . if you want to install the packages in current directory or
npx create-next-app#latest YOUR_FOLDER_NAME and packages will be installed in new folder with the given name as YOUR_FOLDER_NAME.
Try this:
npm i -g create-next-app
It will install create next app globally. To create a next app run this command, if you want to install in current folder.
npx create-next-app
Otherwise, specify the folder name like,
npx create-next-app [your app name]
Related
I always face troubles when i do npm install in my system. this time I am following javascript tutorial so he shows us to use the command npm install -D live-sever and it occurs errors. by the way im using internet behind proxy.
`npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/live-sever - Not found
npm ERR! 404
npm ERR! 404 'live-sever#*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
The correct name is live-server:
npm install -D live-server
I just created a react app, it was working fine but once I restart the editor it is throwing error like this :
Poojas-MacBook-Air:newreact pooja$ npm start
npm ERR! path /Users/pooja/Desktop/projects/newreact/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/Users/pooja/Desktop/projects/newreact/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pooja/.npm/_logs/2020-11-28T10_27_42_118Z-debug.log
Please help if anyone knows about it.
Make sure you have the latest npm (npm install -g npm).
Add an exception to your antivirus to ignore the node_modules folder in your project.
rm -rf node_modules package-lock.json
npm install
Sometimes the PATH is not correct, just open the cmd and cd to the address where the package.json is and then run npm start
For me, it was because of the running Metro server. If anyone is experiencing this issue in react-native, make sure you have stopped the running Metro server instance before entering npm i <package-name>.
With yarn, I think, there's no such issue.
To resolve package.json file, go to your project folder and find package.json location folder.
Open terminal and make sure your are in correct path where package.json file located.
eg: c://projectfolder/folder1/clientapp> npm start
I can not install Maps API for node.js, according to this manual
https://developer.here.com/documentation/maps/3.1.20.0/dev_guide/topics/get-started-bundling.html
PS K:\Gran-canar\NODE-HERE\first-project> npm install #here/maps-api-for-javascript --save
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/#here%2fmaps-api-for-javascript - Not found
npm ERR! 404
npm ERR! 404 '#here/maps-api-for-javascript#latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Alvares\AppData\Roaming\npm-cache_logs\2020-12-04T03_04_24_998Z-debug.log
PS K:\Gran-canar\NODE-HERE\first-project>
For me this worked
npm install #here/maps-api-for-javascript --registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
This seems to be an old post so it is probably too late to help the OP but From your error, it looks you missed running this line:
npm config set #here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
As npm install #here/anything should not be checking HTTP://registry.npmjs.org/ for the module files as they do not exist there.
I installed the Expo CLI and Node version 12
When I tried to create a new react native project I get this error
See error image here
Error
PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found
npm ERR! 404
npm ERR! 404 'create-myreactnativeapp#latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\leosu\AppData\Roaming\npm-cache_logs\2020-05-12T23_54_32_833Z-debug.log
Install for [ 'create-myreactnativeapp#latest' ] failed with code 1
PS C:\Users\leosu\Documents\GitProjects>
Any ideas on how to solve this?
If you're using Expo it should be:
expo init myreactnativeapp
Instead of npm init myreactnativeapp
Assuming that you already ran npm install -g expo-cli
Can anyone help me find and run the server.js file in the "download" files of the book "Pro Javascript for Web Dev" by Adam Freeman? In Page 8 it explains it as:
I rely on some third-party modules, so run the following command after
you have installed the
Node.js package:
npm install node-static jqtpl
This command downloads and installs the node-static and jqtpl packages
that I use to deliver static and templated content in the examples.
The command will generate output similar to this (but you may see some
additional warnings, which can be ignored):
npm http GET https://registry.npmjs.org/node-static
npm http GET https://registry.npmjs.org/jqtpl
npm http 200 https://registry.npmjs.org/jqtpl
npm http 200 https://registry.npmjs.org/node-static
node-static#0.5.9 ./node_modules/node-static
jqtpl#1.0.9 ./node_modules/jqtpl
However I don't get these messages and my examples do not run with right content. Instead I get these:
npm ERR! Linux 3.16.0-70-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-static" "jqptl"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/jqptl
npm ERR! 404
npm ERR! 404 'jqptl' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/nesa/www/pro-javascript/npm-debug.log
Can anyone help me? The link to the download of the files is:
http://www.apress.com/downloadable/download/sample/sample_id/1297/
Type jqtpl correctly, you are typing jqptl instead. Check you error log to see that