Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable To Build (npm run build) #60

Open
wskwebsolution opened this issue Jul 1, 2020 · 25 comments
Open

Unable To Build (npm run build) #60

wskwebsolution opened this issue Jul 1, 2020 · 25 comments

Comments

@wskwebsolution
Copy link

Hi,

I have done every think , Its running good. But i need your help because i am unable to build this project .

I am using build Command: npm run build

My Package.json is :-
{
"name": "video-chat-master",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js",
"build": "react-scripts build",
"test": "echo "Error: no test specified" && exit 1"
},
"author": "yadav",
"license": "ISC",
"dependencies": {
"heroku-ssl-redirect": "0.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"socket.io": "^2.3.0",
"twilio": "^3.47.0"
}
}

its comming error

C:\xampp\htdocs\suresh\video-chat-master>npm run build

video-chat-master@1.0.0 build C:\xampp\htdocs\suresh\video-chat-master
react-scripts build

Could not find a required file.
Name: index.html
Searched in: C:\xampp\htdocs\suresh\video-chat-master\public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! video-chat-master@1.0.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the video-chat-master@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache_logs\2020-07-01T13_39_29_409Z-debug.log

Please guide me how can i Build

@ianramzy
Copy link
Owner

ianramzy commented Jul 1, 2020

There is no build script currently, so that is why npm run build fails instead run:

  1. npm install
  2. npm start

Let me know if that fixes your problem :)

@Chaphasilor
Copy link
Collaborator

@us4group you can't build it. there's nothing to 'build'. This is not a React/Vue/Angular app, it's a server. It's ready to run already :)

@wskwebsolution
Copy link
Author

@us4group you can't build it. there's nothing to 'build'. This is not a React/Vue/Angular app, it's a server. It's ready to run already :)

then how can i Upload on my server ?

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

There is no build script currently, so that is why npm run build fails instead run:

1. `npm install`

2. `npm start`

Let me know if that fixes your problem :)

@ianramzy
i have install already npm

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

There is no build script currently, so that is why npm run build fails instead run:

1. `npm install`

2. `npm start`

Let me know if that fixes your problem :)

@ianramzy how can i upload it on my live server ? I have install npm already . its running find on my localhost , buy i want to upload it on my server .

help me

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

Zip the files of the project and upload them that way? Then unzip and run the previous commands? I dont know your server, but that is a general approach.

@wskwebsolution
Copy link
Author

Zip the files of the project and upload them that way? Then unzip and run the previous commands? I dont know your server, but that is a general approach.
@ianramzy
I have "linux server hosting" I uploaded .zip but its not working .

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

you need to then unzip the files, cd into the unzipped project folder, and then run npm install, npm start (also make sure your .env file is there aswell!)

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

you need to then unzip the files, cd into the unzipped project folder, and then run npm install, npm start (also make sure your .env file is there aswell!)

@ianramzy
i have upload all file here you can see http://xyz.com/awa/

in my localhost running good but i am unable to upload it on my server live

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020 via email

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

did you run the npm commands?

On Mon, Jul 6, 2020 at 1:06 PM us4group @.***> wrote: you need to then unzip the files, cd into the unzipped project folder, and then run npm install, npm start (also make sure your .env file is there aswell!) @ianramzy https://github.com/ianramzy i have upload all file here you can see http://xyz.com/awa/ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#60 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIKTWLJBR5FFZDL6C2WIGCDR2IAAJANCNFSM4ONOQJFQ .
-- Ian Ramzy Software Engineer Founder at Zipcall Intern at Shopify University of Waterloo ianramzy@gmail.com ianramzy.com github.com/ianramzy zipcall.io linkedin.com/in/ianramzy
@ianramzy
yes

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

what is the error?

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

what is the error?
@ianramzy
i am unable to build
i have also install npm react-scripts and add package.json "build": "react-scripts build",

its my package .json
{
"name": "video-chat-master",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js",
"build": "react-scripts build",
"test": "echo "Error: no test specified" && exit 1"
},
"author": "yadav",
"license": "ISC",
"dependencies": {
"heroku-ssl-redirect": "0.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"socket.io": "^2.3.0",
"twilio": "^3.47.0"
}
}

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

What commands are you running, there is no build command. Only npm install and npm start

@wskwebsolution
Copy link
Author

What commands are you running, there is no build command. Only npm install and npm start

@{
"name": "video-chat-master",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js",
"build": "react-scripts build",
"test": "echo "Error: no test specified" && exit 1"
},
"author": "yadav",
"license": "ISC",
"dependencies": {
"heroku-ssl-redirect": "0.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"socket.io": "^2.3.0",
"twilio": "^3.47.0"
}
}
@{
"name": "video-chat-master",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js",
"build": "react-scripts build",
"test": "echo "Error: no test specified" && exit 1"
},
"author": "yadav",
"license": "ISC",
"dependencies": {
"heroku-ssl-redirect": "0.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"socket.io": "^2.3.0",
"twilio": "^3.47.0"
}
}

@ianramzy npm install and npm start its working fine on my localhost:3000 , but i want to upload it on my live server

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

This isnt a react project, there are no react-scripts to build. Remove the build part of package.json. ONLY run npm install and npm start. Thats all you need.

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

This isnt a react project, there are no react-scripts to build. Remove the build part of package.json. ONLY run npm install and npm start. Thats all you need.

@ianramzy everything is working fine on my localhost . but my problem is that how can i run on this URl http://xyz.com/awa/

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

Is your server a live server? Or just a server that hosts static files? Because you cannot deploy zipcall on a static file server.

@wskwebsolution
Copy link
Author

Is your server a live server? Or just a server that hosts static files? Because you cannot deploy zipcall on a static file server.

@ianramzy its my live server .

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

So what happens when you run the npm commands on your live server?

@wskwebsolution
Copy link
Author

wskwebsolution commented Jul 6, 2020

So what happens when you run the npm commands on your live server?

@ianramzy in my cpanel not any command options . i want to run project auto every time on my server like a angular build file

@ianramzy
Copy link
Owner

ianramzy commented Jul 6, 2020

Not sure what cpanel is, but you need to have access to a terminal running inside your server. That is what a live server is, it sounds like yours is just static file hosting.

@wskwebsolution
Copy link
Author

terminal

@ianramzy ok thank you , i will try to run by terminal , then i will let you know about this if any error

@parsa-xy
Copy link

How to use zipcall on a static server? I want to use it for my website which is written on react

@ianramzy
Copy link
Owner

ianramzy commented Jul 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants