The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
command cant found npm file directory
**when I write npm install this Error shows I think is directory files problem but I don’t know how i solve it **
Amoory.SO@xxxs MINGW64 ~/Desktop/project $ npm install npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Amoory.SO\package.json' npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Amoory.SO\package.json' npm WARN Amoory.SO No description npm WARN Amoory.SO No repository field. npm WARN Amoory.SO No README data npm WARN Amoory.SO No license field.
audited 1553 packages in 2.029s
’ found 0 vulnerabilities
Does your project directory have an
@ symbol in the name? (Not sure quite what that first line is showing.)
$ pwd ?
name of project file is : “project”
Another simple question. Does your project have a
package.json file in the folder you are running
npm install from?
No it’s an empty
Amoory.SO@xxxs MINGW64 ~/Desktop/project $ pwd /c/Users/Amoory.SO/Desktop/project
in git command, I
cd in any project now and write
but expo file not showing in command
- I can’t add new node models file with the command
npm init will walk you through creating a
I creat it now the error is different
node_modules/ package.json package-lock.json
`Amoory.SO@xxxs MINGW64 ~/Desktop/project $ npm install :broken_heart: npm WARN email@example.com **No description** :broken_heart:npm WARN firstname.lastname@example.orgNo repository field. audited 10 packages in 1.489s found 0 vulnerabilities
Those are warnings about missing fields, but not errors, so your command is hopefully working.
There is documentation about the fields in
package.json here: https://docs.npmjs.com/files/package.json