#Can someone help please?

94 messages · Page 1 of 1 (latest)

restive lintel

I am trying to install Discord JS. I already installed node and I use the terminal in VS Code. When ever I type in npm (anything), it always gives me an error code basically saying it's not a recognized name.

edgy cobalt

run node -v

restive lintel

Doesnt work

quiet parcel

did you restart vscode after installing node

restive lintel

yes

remote sierra
edgy cobalt

Then you did not install node

quiet parcel

or just didnt add it to path

restive lintel
remote sierra
restive lintel
quiet parcel
remote sierra

if it's not usable, it's not installed

it's just downloaded

quiet parcel

it doesnt need to be in path to be usable

restive lintel
edgy cobalt
restive lintel

I cant

edgy cobalt

obviously

remote sierra
restive lintel

I installed on windows and I am currently typing on discord on my chromebook

edgy cobalt

if you install it on one device that doesnt mean its installed on your other device

remote sierra

so you can show the output

quiet parcel
remote sierra

you still have some kind of browser

edgy cobalt

how did you install node?

restive lintel

On Opera GX

edgy cobalt

?

remote sierra
remote sierra
remote sierra
restive lintel

I tried on Mac a few months ago and recently a few days ago and same thing happened

edgy cobalt

how do you install node

remote sierra

then you hadn't installed it properly then either

being stubborn isn't going to get you anywhere, answer luna's question

restive lintel
edgy cobalt

and did you run the file

restive lintel
remote sierra

explain what "i installed it" involves

restive lintel
restive lintel
edgy cobalt

a'd did you get any confirmation that it was successfully installed

restive lintel

Yes

edgy cobalt

did you restart your pc

restive lintel

I unplugged it a while ago so yes

edgy cobalt

unplugging it is not restarting

restive lintel

With mine, it is since when I plug it in, it doesnt just go back the the screen it was at. It always restarts so I have to log in and then I have to re open the apps again

quiet parcel

thats how computers work, yes

but you said you are not on the same device

can you explain that a bit more

are you developing on device x and chatting on device y, or trying to develop on y while having everything installed on x?

restive lintel

When I said that, i meant I have my PC right next to me but i am currently chatting with you on my chromebook right now

quiet parcel

Ah gotcha

can you please type "Path" into the windows search, click on "Edit the system environment variables" and then on "environment variables" at the bottom right

then in the bottom half double click on path and add "C:\Program Files\nodejs\" on a new line assuming its installed there

then restart vscode

restive lintel

I made sure I installed it though. I clicked on the file and it took me to the installation page

quiet parcel

Yes

You may have installed it, just not added it to path

although thats default behavior

when you search for node in the windows search, does anything appear?

restive lintel

yes

the application does

quiet parcel

that one?

restive lintel

yes

quiet parcel

Can you right click, go to file location, then rightclick the shortcut and go to file location again

where does that bring you

restive lintel

to my hard drive

quiet parcel

yeah I know

but what path

restive lintel

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Node.js

quiet parcel

right click the file again and go to file location

restive lintel

Unless thats not what a path is

quiet parcel

the folder you are at just contains shortcuts

restive lintel

takes me to the same place

quiet parcel

very unlikely

right click that file

not in the search

restive lintel

It takes me to the same hard drive but it showes me a few folders and documents

quiet parcel

yes

quiet parcel
restive lintel

okay

quiet parcel

it should look somewhat like this after you are done, the other entries may differ

restive lintel

Looks like that

Also, what do I answer for the package json question when it says "version: (1.0.0)? It happened last time but I didnt know what to answer

quiet parcel

whatever you want

it doesnt really matter unless you want to publish a package

restive lintel

Last time it said "Invalid version"

So I dont know what to type this time

quiet parcel

you can just use npm init -y to use the default package.json