npm Community Forum (Archive)

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

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?

No it’s an empty

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

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

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

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 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: