assignments
assignments copied to clipboard
Issue while setting up in Windows.
package.json
file is missing!
when I ran npm install
command from the 'assignments-master'
directory,
it showed error, that's related to missing package.json.
I have tried the following in assignmensts-master/01-js
directory and got these errors!
///this is because \Roaming\npm file or directory is not present so Manually create that
- go to the command prompt
- cd AppData 3 mkdir Roaming\npm
// done
//then go to vscode try to run
it may ask for "jest" installation press Y
@mig9mili can you explain more clearly? I think there should be package.json file which should be provided.
true @PranshuRaj1 , but that assignments-master/01-js already has package.json, if that not a problem than we have to check whether that path exits or not to install their dependence
true @PranshuRaj1 , but that assignments-master/01-js already has package.json, if that not a problem than we have to check whether that path exits or not to install their dependence
we can recursively install those packages, below is how I did it (requires administrative privileges on my system)
sudo npm i -g recursive-install
///this is because \Roaming\npm file or directory is not present so Manually create that
- go to the command prompt
- cd AppData 3 mkdir Roaming\npm
// done
//then go to vscode try to run
it may ask for "jest" installation press Y
Thank you @mig9mili !! it worked!