Cannot find module '/var/www/html/lumber/bin/www' error
Hi, I had follows yr mention steps in system, but can not found any file or data while it got successful in-stallion. Nothing in found in directory & postgres. Can u tell me what is issue in this?
Im having the same issue when trying to install on OSX
$ cd "Test_Lumber" && node ./bin/www
module.js:442
throw err;
^
Error: Cannot find module '/Users/foo/Projects/lumber/Test_Lumber/bin/www'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.runMain (module.js:575:10)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
at bootstrap_node.js:467:3
@Ashh007 and @ryanjrose can you just do a ls on the generated directory (Test_Lumber for @ryanjrose ) and show here the output?
Hi @SeyZ , I am having the same issue and here is the result from ls
total 0
drwxr-xr-x 4 cyanglee staff 136B Nov 15 11:15 .
drwxr-xr-x 6 cyanglee staff 204B Nov 15 11:15 ..
drwxr-xr-x 2 cyanglee staff 68B Nov 15 11:15 etc
drwxr-xr-x 2 cyanglee staff 68B Nov 15 11:15 node_modules
Hi @SeyZ getting same in my directory, any update on this bug??
Hey @Ashh007 Can you verify you have data in your database (not just the schema) ?
Hi @SeyZ getting same in my directory, And there no change in my database.
root@20de8211ee05:/data# lumber generate
ℹ︎ Enter your database connection details and then your admin interface will be automatically generated.
ℹ︎ Your database credentials are safe. They are only stored in the Lumber generated microservice.
? What's the database type? mysql
? What's the database name? lumber
? What's the database hostname? mysql
? What's the database port? 3306
? What's the database user? root
? What's the database password? [optional] ****
? Choose a project name: Gift
cd Gift && npm install...
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle undefined~preinstall: undefined
npm info linkStuff !invalid#1
npm info lifecycle undefined~install: undefined
npm info lifecycle undefined~postinstall: undefined
npm info lifecycle undefined~prepublish: undefined
npm WARN enoent ENOENT: no such file or directory, open '/data/Gift/package.json'
npm WARN Gift No description
npm WARN Gift No repository field.
npm WARN Gift No README data
npm WARN Gift No license field.
npm info ok
👍 Hooray, installation success! 👍
Run your admin microservice:
$ cd "Gift" && node ./bin/www
root@20de8211ee05:/data# ls -la Gift/
total 16
drwxr-xr-x 4 root root 4096 Dec 14 16:12 .
drwxrwxr-x 3 node node 4096 Dec 14 16:12 ..
drwxr-xr-x 2 root root 4096 Dec 14 16:12 etc
drwxr-xr-x 2 root root 4096 Dec 14 16:12 node_modules
root@20de8211ee05:/data# cd "Gift" && node ./bin/www
module.js:472
throw err;
^
Error: Cannot find module '/data/Gift/bin/www'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3
root@20de8211ee05:/data/Gift#
same issue
Hi there, As the issue is pretty old, and lumber changed a lot, I think we can close this issue. I am pretty confident that this is fixed with the latest Lumber versions.
🌲🌲🌲