92459


Couldn't find a package.json fileと表示される

[code]

    study-react % yarn dev
    
    yarn run v1.22.19
    error Couldn't find a package.json file in "/Users/kazu/study-react"
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
[/code]

node -v  
v18.12.1  
yarn -v  
1.22.19  
npm -v  
8.19.2


CC BY-SA 4.0
2022-11-27T01:56:47.627
92456
2022-11-27T05:03:18.713
2022-11-27T04:41:31.320
3060
55232
question
json reactjs
yarn dev が実行されない


/Users/kazu/study-react/package.json

というファイルを作っておいてはいかがでしょう

中身は空のJSONとかで

[code]

    {}
    
[/code]


CC BY-SA 4.0
2022-11-27T05:03:18.713
92459
2022-11-27T05:03:18.713
15380
92456
answer