Giter VIP home page Giter VIP logo

Comments (14)

simov avatar simov commented on May 18, 2024

Post here the entire command that you're using in the command line.

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

C:\nodejs\express_admin>node app

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

The first command I used is:
C:\nodejs\express_admin>npm install
Which installed the required node modules
After this I run this command
C:\nodejs\express_admin>node app

path.js:116 throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.exports.resolve (path.js:116:15)
at Object. (C:\nodejs\express_admin\app.js:9:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

from express-admin.

simov avatar simov commented on May 18, 2024

The command must be node app existing_dir
Just tell me if that fails too.

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

What do you mean by existing_dir I have copied all of the files in express_admin folder and the app.js file is in express_admin folder

from express-admin.

simov avatar simov commented on May 18, 2024

Create some directory it may be outside of the admin folder.

mkdir somewhere/project

then

node app path/to/project

These are unix paths just use the regular paths in Windows e.g. \ instead of /

Just create a project directory inside the express-admin folder and test with it

node app project

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

sorry I am confused. I now tried echoing some thing. It gives me this error

C:\nodejs\express_admin\app.js:7
console.log('Check path'.program.getConfigPath());
^
TypeError: Cannot call method 'getConfigPath' of undefined
at Object. (C:\nodejs\express_admin\app.js:7:34)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

in app.js

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

As above it says getConfigPath is undefined I checked /lib/utils/program.js
And it does have this method

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

please reply me back

from express-admin.

simov avatar simov commented on May 18, 2024

Yes unfortunately there is a bug for Windows in some of the external modules that I use. And you'll have to wait a day or two before I can work on it and fix it.

I'll leave this issue open so you'll be notified as soon as the bugfix is ready.

Thanks for the feedback!

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

great!

from express-admin.

chetank25 avatar chetank25 commented on May 18, 2024

Do you know any good git repo where in they have used nodejs/express/mysql I would like to play arround this over the weekend. As for me nodejs looks promising!

from express-admin.

simov avatar simov commented on May 18, 2024

Just install express and mysql read through their documentations and try to write some simple routes querying some test database.

from express-admin.

simov avatar simov commented on May 18, 2024

Hi, @chetank25, sorry for the delay.

Apparently the admin works under windows.

Here is what I've done to get it running on Windows XP but it should run on any newer version as well:

  1. Surely I have installed NodeJS
  2. I've installed the GitHub's client for Windows because I haven't installed git before that
  3. Next I started the Git Shell (it's in the programs menu) and executed npm install express-admin from there because it have the git paths set and I'm too lazy to set it by myself
  4. Next I downloaded the Oracle's MySql package, you need to install the server and the workbench at least
  5. I created a folder called project inside the express-admin folder
  6. Lastly I started the admin and everything went smootly
C:\tmp\node_modules\express-admin>node app.js project
Database name: express-admin-examples
Database user: liolio
Database password: karamba
Server port:
Admin user: admin
Admin password: 11aaAA
Express Admin listening on port 3000
GET / 302 44ms - 100
GET /login 200 128ms - 5.06kb
GET /csslib/bootstrap-responsive.min.css 200 361ms - 16.45kb
GET /csslib/jquery.ui.datepicker.min.css 200 368ms - 19.32kb
GET /express-admin.css 200 291ms - 4.14kb
GET /csslib/bootstrap.min.css 200 431ms - 103.55kb
GET /csslib/jquery.chosen.css 200 396ms - 15.56kb
GET /jslib/bootstrap.min.js 200 287ms - 27.96kb
GET /jslib/jquery.ui.datepicker.js 200 211ms - 41.19kb
GET /jslib/jquery-1.9.1.min.js 200 444ms - 90.46kb
GET /jslib/jquery.chosen.min.js 200 165ms - 23.54kb
GET /express-admin.js 200 152ms - 5.02kb
GET /bootswatch/default/bootstrap.min.css 200 167ms - 103.53kb
GET /bootswatch/img/glyphicons-halflings.png 200 58ms - 12.5kb
GET /express-admin/favicon.ico 302 31ms - 56
GET /login 304 7ms

from express-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.