core: Fresh install fails to run (Windows)

Hi all, I just did a fresh install of Adonis on Windows, installed all dependencies and ran npm run dev. Console output:

C:\Users\jk23\dev\my_projects\tinyissue-adonis  (adonis-app@3.2.0)
λ npm run dev

> adonis-app@3.2.0 dev C:\Users\jk23\dev\my_projects\tinyissue-adonis
> 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\tinyissue-adonis\app/**/* C:\Users\jk23\dev\my_projects\tinyissue-adonis\bootstrap/**/* C:\Users\jk23\dev\my_projects\tinyissue-adonis\config/**/* .env
[nodemon] starting `node server.js`
info adonis:framework +0ms serving app on localhost:3333
TypeError: keygrip.encrypt is not a function
    at Object.Cookie.create (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\node-cookie\src\Cookie\index.js:157:29)
    at CookieManager.set (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\CookieManager.js:50:23)
    at Session.setSessionId (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\index.js:137:24)
    at Session.put (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\index.js:217:10)
    at next (native)
    at onFulfilled (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:65:19)
    at C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:54:5
    at co (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:50:10)
    at toPromise (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:118:63)
    at next (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:99:29)
TypeError: keygrip.encrypt is not a function
    at Object.Cookie.create (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\node-cookie\src\Cookie\index.js:157:29)
    at CookieManager.set (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\CookieManager.js:50:23)
    at Session.setSessionId (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\index.js:137:24)
    at Session.put (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\adonis-framework\src\Session\index.js:217:10)
    at next (native)
    at onFulfilled (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:65:19)
    at C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:54:5
    at co (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:50:10)
    at toPromise (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:118:63)
    at next (C:\Users\jk23\dev\my_projects\tinyissue-adonis\node_modules\co\index.js:99:29)

Browser output: image

Please note that I’ve cleared all cookies from my browser (Chrome).

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

i have the same problem @thetutlage yarn --ignore-optional is not work

when i comments APP_KEY The project can work

this is my operation PORT=3334 #APP_KEY=BpNV9ynbPGmjE5JPqpby6n2YzGpWdzkq NODE_ENV=development

Yup will update that too

Please create new issues, since closed issues are usually missed.

I have just pushed a fix. So

rm -rf node_modules && npm i should work