Lesson : 5 not able to view my package.json and yarn.lock files in my project #5031
-
firstly i downloaded node.js and then yarn using the command --corepack enable now if i type the commnad its giving me a error like "Usage Error: The nearest package directory (C:\Users\Admin\OneDrive\Desktop\blockckain-development\ether.js\ethers_freeCodeCamp) doesn't seem to be part of the project declared in C:\Users\Admin.
$ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ..." here is the ss of it : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Check to see if you have a package.json or yarn.lock file in your /projects directory. If you do, clear it/them out and this should start working. If they arent' in your projects folder. Than Try : cd < path_folder_name>/<project_name> touch yarn.lock yarn |
Beta Was this translation helpful? Give feedback.
Check to see if you have a package.json or yarn.lock file in your /projects directory. If you do, clear it/them out and this should start working.
If they arent' in your projects folder. Than Try :
cd < path_folder_name>/<project_name>
touch yarn.lock
yarn