Pigpog / vlc-discord-rpc

Discord rich presence for VLC media player.
MIT License
207 stars 30 forks source link

NPM Error #59

Closed BNKdesigns closed 2 years ago

BNKdesigns commented 2 years ago

When i start the start.bat it says Did not detect node_modules directory; Installing Modules and when it does the other thing it gives me A Problem occured white installing modules. Ensure that npm is installed but i have Node.js/npm image

BNKdesigns commented 2 years ago

Also i used version 2.2.0 now and it works + the 2.2.1 i think started the error but you have to fix this error

Pigpog commented 2 years ago

That error message comes from start.bat. The only thing that changed about start.bat between those two releases is how it displays error messages. This minor change has actually been undone in recent releases. Please try using the latest release and be sure to extract the zip file to a folder your user can write in. Do not run anything as administrator.

BNKdesigns commented 2 years ago

That error message comes from start.bat. The only thing that changed about start.bat between those two releases is how it displays error messages. This minor change has actually been undone in recent releases. Please try using the latest release and be sure to extract the zip file to a folder your user can write in. Do not run anything as administrator.

Now i changed the folder it was in but this time it gave me some big errors i think its because i dont have python cause it said "Could not find python" but when i run it again it gave me "A Problem occured white installing modules. Ensure that npm is installed" again

BNKdesigns commented 2 years ago

Heres the error

https://user-images.githubusercontent.com/91459350/140552289-d65e016a-b691-45bc-9e5e-765b83c13307.mp4

Pigpog commented 2 years ago

Interesting, that video helps a lot, thanks. It attempts to install the node modules and then fails.

I just tried deleting my node_modules folder and it actually fails for me too! NPM refuses to run because i need to update npm using the command npm install -g npm@8.1.3. Try updating to the latest npm

BNKdesigns commented 2 years ago

Interesting, that video helps a lot, thanks. It attempts to install the node modules and then fails.

I just tried deleting my node_modules folder and it actually fails for me too! NPM refuses to run because i need to update npm using the command npm install -g npm@8.1.3. Try updating to the latest npm

I did what you said but Still the same error.. I even unistalled Node.Js and installed the 17.0.1 version again

BNKdesigns commented 2 years ago

and when i do that command it shows this image

Pigpog commented 2 years ago

Looks like it successfully updated npm. Now try running start.bat again

BNKdesigns commented 2 years ago

Looks like it successfully updated npm. Now try running start.bat again

Didnt work..

Pigpog commented 2 years ago

could you try using command prompt to install the modules? cd into the vlc-discord-rpc directory and run npm i. see what error message appears. Alternatively, use the latest commit (not release) because it leaves npm error messages visible

Pigpog commented 2 years ago

I think at this point you should uninstall and reinstall nodejs/npm, because it looks like npm is borked

BNKdesigns commented 2 years ago

I think at this point you should uninstall and reinstall nodejs/npm, because it looks like npm is borked

can you give me the download link i think i installed the wrong one

Pigpog commented 2 years ago

https://nodejs.org/dist/v16.13.0/node-v16.13.0-x64.msi you probably want this, the windows 64 bit installer

BNKdesigns commented 2 years ago

https://nodejs.org/dist/v16.13.0/node-v16.13.0-x64.msi you probably want this, the windows 64 bit installer

yea cause this one is 16.13.0 and i was using 17.0.1

Pigpog commented 2 years ago

honestly i dont think the version matters much, though I havent tested 17

BNKdesigns commented 2 years ago

honestly i dont think the version matters much, though I havent tested 17

ummmm how do i uninstall npm cause i uninstalled node.js and installed the link you gave me and the same error image

Pigpog commented 2 years ago

using the add/remove programs thing of windows

BNKdesigns commented 2 years ago

using the add/remove programs thing of windows

Still didnt get fixed

Pigpog commented 2 years ago

have you tried the latest bundle release of vlc-discord-rpc? it should work no matter what. if not, ill be back in at least 6 hours

BNKdesigns commented 2 years ago

have you tried the latest bundle release of vlc-discord-rpc? it should work no matter what. if not, ill be back in at least 6 hours

Wheres the link of bundle release

Pigpog commented 2 years ago

https://github.com/Pigpog/vlc-discord-rpc/releases/download/2.3/vlc-discord-rpc-win64-bundle.zip

BNKdesigns commented 2 years ago

https://github.com/Pigpog/vlc-discord-rpc/releases/download/2.3/vlc-discord-rpc-win64-bundle.zip

Its now fixed Tnx!