remote-control-server icon indicating copy to clipboard operation
remote-control-server copied to clipboard

Couldn't get running and can't find help documentation

Open goldingdamien opened this issue 6 years ago • 4 comments

After "npm start" a list of listening IP/ports are shown. Which should I use? How do they differ? I tried going to 127.0.0.1:3000 and the localhost alternative but the browser page showed nothing. The console shows the following: remote-control-server

goldingdamien avatar Jan 11 '19 05:01 goldingdamien

I found the solution:

for understanding npm: Open the app-main directory and look at package.json file.

there is a category "scripts" there you find a category "build" and "js" and "css"

the solution: if you execute "npm run build" in app-main direcotry , it will run "js" and "css" and this will generate the missing files.

restart server by using: npm start again.

Does it help?

distancerunner avatar Jan 30 '19 08:01 distancerunner

@distancerunner Thanks. Worked. This should be added to the README.md

goldingdamien avatar Feb 08 '19 08:02 goldingdamien

Getting error, unable to generate index.js file :

> [email protected] build /Users/xeuser/Desktop/last-try/remote-control-server
> npm run css && npm run js

> [email protected] css /Users/xeuser/Desktop/last-try/remote-control-server
> node-sass src/scss/style.scss -o src/res

Rendering Complete, saving .css file...
Wrote CSS to /Users/xeuser/Desktop/last-try/remote-control-server/src/res/style.css

> [email protected] js /Users/xeuser/Desktop/last-try/remote-control-server
> browserify -t babelify src/client/index.js -o src/res/index.js

Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/xeuser/Desktop/last-try/remote-control-server/node_modules/babel-preset-react/lib/index.js while parsing file: /Users/xeuser/Desktop/last-try/remote-control-server/src/client/index.js
    at createDescriptor (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
    at /Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
    at Array.map (<anonymous>)
    at createDescriptors (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
    at createPresetDescriptors (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
    at presets (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
    at mergeChainOpts (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-chain.js:320:26)
    at /Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-chain.js:283:7
    at Generator.next (<anonymous>)
    at buildRootChain (/Users/xeuser/Desktop/last-try/remote-control-server/node_modules/@babel/core/lib/config/config-chain.js:120:29)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] js: `browserify -t babelify src/client/index.js -o src/res/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] js 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!     /Users/xeuser/.npm/_logs/2020-05-23T13_03_25_593Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `npm run css && npm run js`
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!     /Users/xeuser/.npm/_logs/2020-05-23T13_03_25_614Z-debug.log

xi1570-krupeshanadkat avatar May 23 '20 13:05 xi1570-krupeshanadkat

@distancerunner Thanks. Worked. This should be added to the README.md

Could you please share index.js file generated?? It would be big help!

xi1570-krupeshanadkat avatar May 23 '20 13:05 xi1570-krupeshanadkat