Comments (14)
Post here the entire command that you're using in the command line.
from express-admin.
C:\nodejs\express_admin>node app
from express-admin.
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.
The command must be node app existing_dir
Just tell me if that fails too.
from express-admin.
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.
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.
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.
As above it says getConfigPath is undefined I checked /lib/utils/program.js
And it does have this method
from express-admin.
please reply me back
from express-admin.
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.
great!
from express-admin.
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.
Just install express
and mysql
read through their documentations and try to write some simple routes querying some test database.
from express-admin.
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:
- Surely I have installed NodeJS
- I've installed the GitHub's client for Windows because I haven't installed git before that
- 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 - Next I downloaded the Oracle's MySql package, you need to install the server and the workbench at least
- I created a folder called
project
inside the express-admin folder - 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)
- nsp security issues HOT 1
- Store comma seperated values for a single column.
- Passing parameters to /add in order to prevalue fields
- mysql insert operation not working in -v (development, no login) mode HOT 1
- Time is not shown correctlly for mysql db HOT 1
- Unhandled exception when paginating empty resultsets
- Ajax call not working
- Error creating entry with many to many relationship
- crashes under Firefox Quantum 62.0 (64-bit) under OSX
- Support for postgres data type json? HOT 4
- ERROR! Could not find `pg` or `pg.js` module HOT 1
- Can this be used with hapijs? HOT 1
- PG setup via connection string
- Datepicker saving timezone with timestamp HOT 1
- Empty one to Many HOT 4
- Filter in tables throw internal server error HOT 1
- Password authentication fails for Postgres (11) connections HOT 4
- Flash of unstyled content HOT 3
- how to configure server using nodemon HOT 1
- what is mean for this error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-admin.