-
Notifications
You must be signed in to change notification settings - Fork 502
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
Comments
There is no build script currently, so that is why
Let me know if that fixes your problem :) |
@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 ? |
@ianramzy |
@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 |
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. |
|
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 in my localhost running good but i am unable to upload it on my server live |
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://itvaranasi.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
[email protected]
ianramzy.com
github.com/ianramzy
zipcall.io
linkedin.com/in/ianramzy
|
|
what is the error? |
its my package .json |
What commands are you running, there is no build command. Only npm install and npm start |
@{ @ianramzy npm install and npm start its working fine on my localhost:3000 , but i want to upload it on my live server |
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/ |
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 . |
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 |
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. |
@ianramzy ok thank you , i will try to run by terminal , then i will let you know about this if any error |
How to use zipcall on a static server? I want to use it for my website which is written on react |
Not possible, there needs to be a live sever for the backend to work
properly.
|
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
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! [email protected] build:
react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
The text was updated successfully, but these errors were encountered: