petermr / openVirus

aggregation of scholarly publications and extracted knowledge on viruses and epidemics.
The Unlicense
66 stars 17 forks source link

Problem installing `Node.js` for `getpapers` #53

Open petermr opened 4 years ago

petermr commented 4 years ago

environment

operating system, RAM,

 attempted operation

Installing Node.js for getpapers. Following instructions from ???

output so far

step 1

... did it work?

step 2

Expected output: ... but got ... (cut and paste the whole output (unless it's huge) and use 3 backticks to format it

formatted text
kareenasingh commented 4 years ago

following instructions from https://github.com/blahah/installing-node-tools#windows

kareenasingh commented 4 years ago

outcome: error: access to the registry path is denied

kareenasingh commented 4 years ago

Screenshot (11)

petermr commented 4 years ago

Well done Kareena. You have reported this well. (It's also useful to clip the output as text as well as an image so we can cut and paste). It's almost certain that other people have had this issue before. So we'll google it

I typed

ERROR: Access to the registry path is denied Node.js

and selected https://medium.com/@github.gkarthiks/how-to-install-nodejs-and-npm-in-non-admin-access-windows-machines-102fd461b54c

My guess is that you need "root" permission. Have you installed software before? If not you will find that some requires "root" or "superuser". If this is your own machine you can probably get this permission. If not then your university may have forbidden it.

But the link above may be the answer.

This is EXACTLY why your work is so important. Because other people will have the same problem. So write a small part of your report , something like:

Problem: ERROR: Access to the registry path is denied

Node.js cannot normally be installed without root permission. The error message

ERROR: Access to the registry path is denied

is emitted.

There may be a workaround at:

https://medium.com/@github.gkarthiks/how-to-install-nodejs-and-npm-in-non-admin-access-windows-machines-102fd461b54c

kareenasingh commented 4 years ago

Screenshot (12) thank you. installed node.js application. is it correct? also, how should I install getpapers after this. following these instructions https://github.com/ContentMine/getpapers/blob/master/README.md#installing-getpapers

petermr commented 4 years ago

if you find a commandline and type

node --version

then it should return something like

v11.11.0

If it doesn't then it's not right...

Yes - go ahead and try to install getpapers

Also record how you got this to work.

Priya-Jk-15 commented 4 years ago

Screenshot (30)

I verified and I got yes but I can't install getpapers from those instructions

petermr commented 4 years ago

The $ is not part of the command (it's the UNIX prompt). Your prompt is > (it's different on different platforms).

so just try

npm install --global getpapers

Note that error messages are often very abstract because there are many causes. This one is not too difficult - it says it can't understand the $.

Everybody makes mistakes when they start a new system, which is why your experience is so valuable. This is probably a common error so you could add a sentence "Everything up to and including the "$" is not part of the command".

kareenasingh commented 4 years ago

Screenshot (13) kindly check. installed getpapers.

Priya-Jk-15 commented 4 years ago

Screenshot (33)

Installed getpapers! Thank you.