100xdevs-cohort-2 / assignments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue while setting up in Windows.

n07kiran opened this issue · 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

///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 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

  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!