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
?

No ,

name of project file is : “project”

on disktop

Another simple question. Does your project have a package.json file in the folder you are running npm install from?

1 Like

No it’s an empty
file

    Amoory.SO@xxxs MINGW64 ~/Desktop/project
$ pwd
/c/Users/Amoory.SO/Desktop/project

in git command, I cd in any project now and write
ls
but expo file not showing in command

  • I can’t add new node models file with the command
    npm install

Running npm init will walk you through creating a package.json file.

1 Like

I creat it now the error is different
`
ls

node_modules/  package.json  package-lock.json    

`


`Amoory.SO@xxxs MINGW64 ~/Desktop/project
$ npm install
  :broken_heart: npm WARN omar0@1.0.0 **No description**
    :broken_heart:npm WARN omar0@1.0.0No 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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.