I am beginner programmer. In react-native project I saw some file like package.json in src folder in some project. In file was written {"name": "src"}
Besides package.json in file were app, dev, res
folders.
Is it important for something?
Asked
Active
Viewed 457 times
0

bekanur98
- 502
- 1
- 7
- 20
-
1`package.json` should be at root level only. – ravibagul91 Sep 16 '19 at 10:51
-
@ravibagul91 root level you mean in mobile level? In mobile level I have ```package.json``` But in src folder I also have ```package.json``` – bekanur98 Sep 16 '19 at 10:54
-
I think the file in `src` folder is of no use. – ravibagul91 Sep 16 '19 at 10:56
-
if its giving some error then run this command in project terminal 'rm-rf node-modules' after that run this 'npm install' – M.Hassam Yahya Sep 16 '19 at 11:09
-
Importing local dependencies is supported natively. https://stackoverflow.com/questions/15806241/how-to-specify-local-modules-as-npm-package-dependencies?rq=1 – Burak SARI Sep 16 '19 at 11:50