michaelliao / itranswarp.js

Deprecated. See https://github.com/michaelliao/itranswarp
Apache License 2.0
1.41k stars 703 forks source link

can not create schema #48

Closed physiii closed 5 years ago

physiii commented 6 years ago

instructions say to run node schema > init_db.sql to create schema

but I get:

$node schema > init_db.sql module.js:549 throw err; ^

Error: Cannot find module '/var/www/itranswarp.js/www/schema' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3

I tried npm install schema but get same error

apple-han commented 6 years ago

最后怎么解决的呢?我也碰到了 这个问题

EaglesWorld commented 6 years ago

建库和初始化表,要先执行script文件夹中的init_db.js 文件,执行时不要忘记修改config_default.js中的数据库密码