I downloaded off Github a friends react app to see what some functions are doing and design. I've been trying to run the application but keep running into errors. I extracted the folder out of the Zip file and in the command line run npm install and then doing npm start the error I encounter is the following:
PS C:\WINDOWS\System32\WindowsPowerShell\v1.0> npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\WINDOWS\System32\WindowsPowerShell\v1.0\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open
'C:\WINDOWS\System32\WindowsPowerShell\v1.0\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! C:\Users\RafayChaudhary\AppData\Roaming\npm-cache\_logs\2020-02-
03T19_49_57_690Z-debug.log
Please let me know what i am doing wrong.
Your PowerShell directory is pointing to the System dir for PowerShell i.e.
PS C:\WINDOWS\System32\WindowsPowerShell\v1.0>
You need to change this to the directory of your React app e.g.
cd C:\Path\To\React\App
npm i && npm start
Related
When I use the npm start command this error shows up:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/kratichoudhary/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/kratichoudhary/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Usually this issue happens whenever you try to npm start in the wrong directory.
Make sure your terminal is pointing to the same directory where your package.json file is and then run the command.
If the problem is still not solved, please share some more details
command "npm run serve" doest work, and i get this:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\user/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\user\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: <>br
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-02-24T23_43_08_331Z-debug-0.log
I tried reinstalling/ installing the node, npm, i tried and didnt work:
npm config set ignore-scripts false
It looks like you are executing NPM from your user home directory. You need to run it in a project directory, and then run npm init, along with the corresponding npm install <X> commands. Do not run init if the project is already initialized.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\User\Documents\GitHub\angular-11-spring-boot-jwt-authentication\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! C:\Users\User\AppData\Roaming\npm-cache_logs\2021-08-09T10_56_11_734Z-debug.log
Error
Delete node_modules folder and re-install all your dependencies using npm install
Ensure that you have a stable version of Node
Run npm start/ng serve from the angular folder
Whenever I am running npm start in my project it displays the following error
npm ERR! code ENOENT npm ERR! syscall open npm ERR! path
/home/abhi/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no
such file or directory, open '/home/abhi/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!
/home/abhi/.npm/_logs/2020-12-17T04_15_31_411Z-debug.log
abhi#Abhi:~/Projects/demo1$
I tried everything to fix the issue but did not find a solution.
what I am missing in JSON.package ??
You need to navigate to your app directory to be able to run npm start.
seems you are running it out of that directory.
type
cd "your app path"
then
npm start
is your package initialised at all? did you run
npm init
or your dependencies and their versions are correct? and the node version too?
Clear everything from the cache and try installing again
npm cache clean
I am having error installing latex-sketch-plugin. I don't have a complete idea how to install this plugin but I need it for my thesis as I have to make some diagrams that will need mathematical equations written as well. So basically, I have node package manager
amar#admin:~$ npm -v
5.4.2
and I cloned the latex-sketch-plugin repo using git clone into sketch plugin folder i.e ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins
but when I execute npm run watch I get the following error
amar#admin:~$ npm run watch
npm ERR! path /Users/amar/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/amar/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/amar/.npm/_logs/2017-11-08T04_14_49_190Z-debug.log
The error message says /Users/amar/package.json cannot be found. Looks like you ran the npm command in /Users/amar folder. Please run in the folder where you cloned the project, so npm can find package.json