assignments icon indicating copy to clipboard operation
assignments copied to clipboard

Issue while setting up in Windows.

Open n07kiran opened this issue 11 months ago • 4 comments

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. image

I have tried the following in assignmensts-master/01-js directory and got these errors! image

n07kiran avatar Mar 24 '24 02:03 n07kiran

///this is because \Roaming\npm file or directory is not present so Manually create that

  1. go to the command prompt
  2. cd AppData 3 mkdir Roaming\npm

// done

//then go to vscode try to run

it may ask for "jest" installation press Y

mig9mili avatar Mar 28 '24 13:03 mig9mili

@mig9mili can you explain more clearly? I think there should be package.json file which should be provided.

PranshuRaj1 avatar Mar 31 '24 13:03 PranshuRaj1

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

mig9mili avatar Apr 04 '24 04:04 mig9mili

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

IamRitz avatar Apr 11 '24 04:04 IamRitz

///this is because \Roaming\npm file or directory is not present so Manually create that

  1. go to the command prompt
  2. 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!

n07kiran avatar Apr 27 '24 05:04 n07kiran