core: Fresh install fails to run (Windows)
Hi, Here are the errors I’m getting when trying to run a fresh installation of Adonis on Windows, some of which relate to https://github.com/adonisjs/adonis-framework/issues/429 and https://github.com/adonisjs/adonis-cli/issues/24
C:\Users\jk23\dev\my_projects
λ adonis new yardstick
_ _ _ _
/ \ __| | ___ _ __ (_)___ | |___
/ _ \ / _` |/ _ \| '_ \| / __|_ | / __|
/ ___ \ (_| | (_) | | | | \__ \ |_| \__ \
/_/ \_\__,_|\___/|_| |_|_|___/\___/|___/
√ Your current Node.js & npm version match the AdonisJs requirements!
⠏ Cloning master branch of adonisjs/adonis-app blueprint
clone: Repository cloned
i Yarn has been detected in your system!
? Do you want to use yarn instead of npm? Yes
⠋ Installing dependencies using yarn× Installing dependencies failed!
Command failed: cd C:\Users\jk23\dev\my_projects\yardstick; yarn
The system cannot find the path specified.
C:\Users\jk23\dev\my_projects
λ cd yardstick\
C:\Users\jk23\dev\my_projects\yardstick (master) (adonis-app@3.2.1)
λ yarn
yarn install v0.19.1
info No lockfile found.
[1/4] Resolving packages...
warning adonis-lucid > knex > node-uuid@1.4.7: use uuid module instead
[2/4] Fetching packages...
warning fsevents@1.0.17: The platform "win32" is incompatible with this module.
info "fsevents@1.0.17" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 266.04s.
C:\Users\jk23\dev\my_projects\yardstick (master) (adonis-app@3.2.1)
λ ls
CHANGELOG.md README.md ace app bootstrap config database node_modules package.json providers public resources server.js storage yarn.lock
C:\Users\jk23\dev\my_projects\yardstick (master) (adonis-app@3.2.1)
λ npm run serve:dev
> adonis-app@3.2.1 serve:dev C:\Users\jk23\dev\my_projects\yardstick
> nodemon --watch app --watch bootstrap --watch config --watch .env -x node server.js
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: C:\Users\jk23\dev\my_projects\yardstick\app/**/* C:\Users\jk23\dev\my_projects\yardstick\bootstrap/**/* C:\Users\jk23\dev\my_projects\yardstick\config/**/* .env
[nodemon] starting `node server.js`
{ Error: ENOENT: no such file or directory, open 'C:\Users\jk23\dev\my_projects\yardstick\.env'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.config (C:\Users\jk23\dev\my_projects\yardstick\node_modules\dotenv\lib\main.js:30:37)
at new Env (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-framework\src\Env\index.js:30:12)
at Object.closure (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-framework\providers\EnvProvider.js:17:14)
at Object.Ioc._resolveProvider (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:124:53)
at Object.Ioc.use (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:376:18)
at Ioc.use (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:380:18)
at fold.Registrar.register.then (C:\Users\jk23\dev\my_projects\yardstick\bootstrap\http.js:45:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\jk23\\dev\\my_projects\\yardstick\\.env' }
[nodemon] restarting due to changes...
[nodemon] starting `node server.js`
{ Error: ENOENT: no such file or directory, open 'C:\Users\jk23\dev\my_projects\yardstick\.env'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.config (C:\Users\jk23\dev\my_projects\yardstick\node_modules\dotenv\lib\main.js:30:37)
at new Env (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-framework\src\Env\index.js:30:12)
at Object.closure (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-framework\providers\EnvProvider.js:17:14)
at Object.Ioc._resolveProvider (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:124:53)
at Object.Ioc.use (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:376:18)
at Ioc.use (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-fold\src\Ioc\index.js:380:18)
at fold.Registrar.register.then (C:\Users\jk23\dev\my_projects\yardstick\bootstrap\http.js:45:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\jk23\\dev\\my_projects\\yardstick\\.env' }
info adonis:framework +1ms serving app on null:null
Error: Invalid listen argument: [object Object]
at Server.listen (net.js:1384:13)
at Server.listen (C:\Users\jk23\dev\my_projects\yardstick\node_modules\adonis-framework\src\Server\index.js:261:31)
at fold.Registrar.register.then (C:\Users\jk23\dev\my_projects\yardstick\bootstrap\http.js:103:14)
at process._tickCallback (internal/process/next_tick.js:103:7)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3
[nodemon] clean exit - waiting for changes before restart
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
Published, Sorry for the delay