cloud-ide icon indicating copy to clipboard operation
cloud-ide copied to clipboard

Unable to install dependencies on server

Open mdAliMaaz opened this issue 2 years ago • 9 comments

image

mdAliMaaz avatar May 06 '24 17:05 mdAliMaaz

Problem is with npm i node-pty because it is giving the error.

kumarkshitij171 avatar May 06 '24 20:05 kumarkshitij171

To resolve the issue with the node-pty package, ensure that the necessary dependencies are installed on your Ubuntu/Linux system:

sudo apt update
sudo apt install make
sudo apt install gcc
sudo apt install g++
sudo apt install python3

NOTE

For windows os, I guess we've to install software like Visual Studio and many other heavy softwares.

varshil-shah avatar May 07 '24 03:05 varshil-shah

If you face this issue mean you are a windows user we already discussed on it in issue #4

Windows user face this issue from many years but still we can't find any solution soo the best why to face this is switch your OS like Ubuntu is best.

ruru-m07 avatar May 07 '24 04:05 ruru-m07

If you face this issue mean you are a windows user we already discussed on it in issue #4

Windows user face this issue from many years but still we can't find any solution soo the best why to face this is switch your OS like Ubuntu is best.

Yes, I agree development on windows is headache compare to linux but you can use WSL or use Cloud code editor like replit or else spin up a machine on cloud.

varshil-shah avatar May 07 '24 05:05 varshil-shah

@rahul-technogetic

@ruru-m07 have you tried running the backend code on codespaces?

yes, I tried to run code in github codespaces and google IDX You can check photos on pr #2

as there are no errors, but from the front end it is showing the cors issue even after configuring the cors and options for it as per my frontend URL!

can you provide me a little bit more info like a code snippet or some images that help me to understand what's going on? so I can help you. 😊

ruru-m07 avatar May 08 '24 11:05 ruru-m07

resolved #5

https://gist.github.com/ruru-m07/10c8d80ccd77b3eebbc0495165e7b561

@everyone @piyushgarg-dev @mdAliMaaz @kumarkshitij171 @varshil-shah

ruru-m07 avatar May 08 '24 14:05 ruru-m07

@piyushgarg-dev @mdAliMaaz @kumarkshitij171 @varshil-shah @ruru-m07 Here is the solution https://www.linkedin.com/feed/update/urn:li:activity:7216473523446292480/ For now refer to this post, I will shortly add detailed solution properly in here....

rajdama avatar Jul 10 '24 14:07 rajdama

I have tried everything to solve this issue but nothing really worked. Then i tried installing and using it in LINUX instead of WINDOWS and it worked pretty smoothly without any errors

aayushsingh7 avatar Jul 12 '24 15:07 aayushsingh7

I have tried everything to solve this issue but nothing really worked. Then i tried installing and using it in LINUX instead of WINDOWS and it worked pretty smoothly without any errors

You mean wsl?

rajdama avatar Jul 12 '24 17:07 rajdama