Git Product home page Git Product logo

adonis-cli's Introduction

AdonisJs Cli 🍺

Scaffolding tool for Adonisjs

NPM Version Build Status Appveyor Coveralls

Adonis cli is built on top of Adonis ace and helps you scaffold new Adonisjs projects.

Also it can proxy all the ace commands for a project, so that you can run them using the global adonis command.

Installation

You can install the package from npm.

npm i --global @adonisjs/cli

Usage

adonis new yardstick

# start http server
adonis serve --dev

Moving Forward

Checkout the official documentation at the AdonisJs website for more info.

Tests

Tests are written using japa. Run the following commands to run tests.

npm run test:local

# report coverage
npm run test

# on windows
npm run test:win

Release History

Checkout CHANGELOG.md file for release history.

Meta

AdonisJs – @adonisframework – [email protected]

Checkout LICENSE.txt for license information

Harminder Virk (Aman) - https://github.com/thetutlage

adonis-cli's People

Contributors

allanfreitas avatar ammezie avatar assertchris avatar benallfree avatar betanu701 avatar capfsb avatar dependabot-preview[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar labelsuisse avatar marcuspianco avatar pieterventer7 avatar romainlanz avatar shreeve avatar snyk-bot avatar targos avatar thetutlage avatar webdevian avatar wxs77577 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adonis-cli's Issues

Command route:list not show all routes when use only with resource as arguments

Sample for replay:

Route.resource('/test', 'TestController').only('index', 'store', 'show', 'update')

Output command adonis route:list

$ adonis route:list
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Route β”‚ Verb(s)  β”‚ Handler              β”‚ Middleware β”‚ Name        β”‚ Domain β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ /test β”‚ HEAD,GET β”‚ TestController.index β”‚            β”‚ /test.index β”‚        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜

But when set accepted methods as array, adonis route:list display correct

Route.resource('/test', 'TestController').only(['index', 'store', 'show', 'update'])
$ adonis route:list
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Route     β”‚ Verb(s)   β”‚ Handler               β”‚ Middleware β”‚ Name         β”‚ Domain β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ /test     β”‚ HEAD,GET  β”‚ TestController.index  β”‚            β”‚ /test.index  β”‚        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ /test     β”‚ POST      β”‚ TestController.store  β”‚            β”‚ /test.store  β”‚        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ /test/:id β”‚ HEAD,GET  β”‚ TestController.show   β”‚            β”‚ /test.show   β”‚        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ /test/:id β”‚ PUT,PATCH β”‚ TestController.update β”‚            β”‚ /test.update β”‚        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Mysql

Hello everyone,
I install adonisjs --api-only and when I run the command: migration: run I get an error telling me to install sqlite.
In my .env file, I have mysql.

Help

Package version

adonis 4.1.0

Node.js and npm version

9.0.0

Sample Code (to reproduce the issue)

Console :
Knex: run
$ npm install sqlite3 --save
Error: Cannot find module 'sqlite3'

My .env file :
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root

Tank's for your help

An in-range update of semver is breaking the build 🚨

Version 5.4.0 of semver just got published.

Branch Build failing 🚨
Dependency semver
Current Version 5.3.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

semver is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
  • ❌ continuous-integration/appveyor/branch AppVeyor build failed Details

Commits

The new version differs by 16 commits.

  • e1c49c8 v5.4.0
  • 3ebc11d more test coverage
  • 5b30513 speed up tests a lot, add coverage
  • e1668ce add top level intersects function
  • 6cb2bcb intersection: use semver.version, not semver.raw
  • 4bacbfa Make exposed apis more clear
  • 8b86a26 Reduce line length and remove unused platform parameter
  • 99f133e Add range and comparator intersection docs to README
  • afbe8ca Move methods to comparator and range
  • 67c9ed7 Add support for range and comparators comparison
  • caeeac4 remove 0.x from Travis, cache npm stuff, use containers
  • bdda1a4 Add Node.js 8 to .travis.yml
  • 8fff305 Add node 6 to travis
  • aaba710 Added syntax highlighting to readme example
  • 32802c5 minimize heap allocations for maxSatisfying/minSatisfying

There are 16 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Yarn support

Hi !

I'm currently discovering adonis which seems really promising !

When I tried to setup my first project, the readme says to run :

adonis new awesome-project

But when I did that, all the deps where setup using npm.
It would be nice to have a yarn argument or --skip-npm so we can run yarn later on our own.

Getting error after latest update.

I am getting the following error when trying to run adonis in command line:

/usr/bin/env: β€˜node --harmony-async-await’: No such file or directory

Quick google found this

Using Ubuntu 16.04
Node: v8.2.1

Make controller for Ws get error

When make controller for ws received error:

$ adonis make:controller ModemLogTailController
? Select controller type For Websocket channel
Cannot read property 'getFilePath' of undefined

Tree view files:

app

Controllers

Http

UsersController.js

An in-range update of adonis-ace is breaking the build 🚨

Version 3.0.8 of adonis-ace just got published.

Branch Build failing 🚨
Dependency adonis-ace
Current Version 3.0.7
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

adonis-ace is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/appveyor/branch AppVeyor build failed Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 5 commits.

  • 84e9c93 Merge branch 'release-3.0.8'
  • 941f609 chore(release): 3.0.8
  • da5e4e8 fix(command): use command.opts() over command._events
  • 8d0ffda chore(package): update sinon to version 2.0.0 (#48)
  • 89dab62 fix(package): update node-exceptions to version 2.0.0 (#49)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

run ace when on project directory

it just idea.
why not make this command run as alias for ace when on project directory. like this we don't need to use two command for make new project and managing project. and it make this command use more often. but it just alias so use ace command is no problem.

Fresh install: got Unexpected identifier

Hello! I just installed @adonisjs/cli, and I'm not able to create a new project with adonis new project

async _setupProjectDirectory (stepsCounter, appPath, options) {
        ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\@adonisjs\cli\src\Commands\index.js:18:8)
    at Module._compile (module.js:571:32)``` 

I'm on Windows 10, tested the command with CMD, Powershell & Bash.

Node version: 7.5

EDIT : Seen with a guy on Discord, this is due to my Node version, which doesn't include `async` functions.

Bug to class name

@danielsalles commented on Mon Feb 19 2018

If create validator using path the class name bug.

Example:
adonis make:validator User/index

Output:

'use strict'

class User&#x2F;index {
  get rules () {
    return {
      // validation rules
    }
  }
}

module.exports = User&#x2F;index

@alanaasmaa commented on Sat Mar 24 2018

I have same issue.

Did you get the validator to work in sub folder ?


@thetutlage commented on Sat Mar 24 2018

It shouldn’t stop u from using it, simply put the class name manually.

Also I’ll fix the cli to produce the right class name


@alanaasmaa commented on Sat Mar 24 2018

@thetutlage Damn u reply fast.

I tried to fix class name manually but it did not work. I get 204 No Content from my api.


@thetutlage commented on Sat Mar 24 2018

204 is not an error, also response code is not a way to find if something works or not.

Make sure your controller does return something or calls response.send

Use ncp?

Looking at cli.copy and wondering if ncp would be helpful for package maintainers. If my package has multiple migration files, or multiple config files in subfolders, using ncp under the hood rather than fs.copy would make publishing easier. Thoughts?

Adonis-Cli Requires NPM Even When --yarn Flag Is On

I use yarn exclusively for managing dependencies and for this reason I do not have npm installed. On Arch Linux nodejs, npm and yarn are separate packages so one can install only nodejs and yarn without npm. This is my current setup. However, after installing adonis-cli with yarn global add adonis-cli and attempting to create a project with adonis new yardstick --yarn I get the error in the attached image.

It appears adonis-cli is not honoring the --yarn flag. Should this be the expected behavior?
deepinscreenshot20170527172701

'new' creates legacy version of adonis?

Hi guys.

I followed docs by this url and really confused when
adonis new --only-api
didn't work but in docs it described. Ok, happens. But I can't understand this package.json

...

"dependencies": {
    "adonis-ace": "^3.0.7",
    "adonis-auth": "^1.0.5",
    "adonis-commands": "^2.1.5",
    "adonis-fold": "^3.0.3",
    "adonis-framework": "^3.0.10",
    "adonis-lucid": "^3.0.14",
    "adonis-middleware": "^1.0.11",
    "adonis-websocket": "^1.0.3",
    "youch": "^2.0.4"
  },

...

As I understand v3.0 of adonis is deprecated(legacy) and as I see we have adonis packages for v4.0 but why cli creates deprecated project dependencies?
One more points is different hello world pages between docs and spawned by adonis new command.

[bug] --no-ansi option returns nothing

--no-ansi option returns nothing.

Package version

4.0.10

Node.js and npm version

node v8.15.0
npm 6.5.0

Sample Code (to reproduce the issue)

$ adonis --no-ansi

BONUS (a sample repo to reproduce the issue)

Debugging is not stable. (VsCode, Cmder)

Hello,

Im using vscode to debug nodejs.
My app crashes often and sometimes stops watching files.

I run npm run dev-debug that calls adonis serve --dev --debug in cmder.
Debugging starts and all is fine.

I attach my vscode with this config

       {
            "name": "Attach",
            "type": "node",
            "request": "attach",
            "port": 9229,
            "address": "localhost",
            "restart": true,
            "sourceMaps": false,
            "localRoot": "${workspaceRoot}",
            "remoteRoot": null
        }

Everything works okey, except app is crashing pretty often and watch stops watching.

I use adonuxt template

Installing on Windows

Hi, below is the console output when trying to install on Windows 7.

C:\Users\jk23\dev\my_projects
Ξ» adonis -V
2.1.8

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) ([email protected])                                                  
Ξ» yarn                                                                                                               
yarn install v0.19.1                                                                                                 
info No lockfile found.                                                                                              
[1/4] Resolving packages...                                                                                          
warning adonis-lucid > knex > [email protected]: use uuid module instead                                               
[2/4] Fetching packages...                                                                                           
warning [email protected]: The platform "win32" is incompatible with this module.                                      
info "[email protected]" 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.                                                                                                     

Not getting migration options in cli

image

I am unable to run migration commands from cli v3.0.17
error: migration:run is not a registered command

At first the migration commands where visibe
image

I got error to install SQLite
image

After installing sqlite the migration command in not working.
I tried reinstalling the cli but no luck.

i am having error installing adonis cli with npm

if i am doing this command
npm i -g @adonisjs/cli
i have this error

npm WARN optional Skipping failed optional dependency /@adonisjs/cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "-g" "@adonisjs/cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/faranda/npm-debug.log

please can someone help me?

Problem Creating Adonis Project

I am having this error when I create Adonis project. Please fix.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Damilare\freelance\Kangpe\npm-debug.log

Some cli commands "hang"

Looks like some of the command line scripts cause Node hangup.

eg:

adonis route:list

Cli lists routes and "waits" indefinitely. I've tried to dig into this issue and it looks for me that some commands are returning Promise (function handlers are defined with async keyword) which is not resolved (or waits for resolving).

Some commands (eg adonis --help) stop node after execution.

I tried to write a fix for this however, I'm not sure whether the problem is in adonis-cli or simply in the commands that are executed. If it's the latter case it would require reviewing all packages providing commands for the framework.

Version 4.1 documented but not published

Hello, first of all congratulate them for this excellent framework, it helps a lot to launch applications quickly.

My observation is that reading the documentation appear features that have not yet been published, specifically the option to generate validators in the console (adonis make: validator StoreUser) which corresponds to version 4.1, however the latest published version is 4.0.

Do you have an estimated date of publication of this version?

repl doesn't see already defined variables

Hello, I encountered a strange issue, where I could not use an already defined variable, because it was undefined, but I could not define it because it was already declared:

> let asd = Employee.findBy('login', 'superuser')
ReferenceError: Employee is not defined
    at repl:1:11
    at Script.runInContext (vm.js:74:29)
    at REPLServer.defaultEval (repl.js:250:29)
    at bound (domain.js:376:14)
    at REPLServer.runBound (domain.js:389:12)
> const Employee = use('App/Models/Employee')
undefined
> let asd = Employee.findBy('login', 'superuser')
SyntaxError: Identifier 'asd' has already been declared
    at repl:1:1
    at Script.runInContext (vm.js:74:29)
    at REPLServer.defaultEval (repl.js:250:29)
    at bound (domain.js:376:14)
    at REPLServer.runBound (domain.js:389:12)
> asd = Employee.findBy('login', 'superuser')
ReferenceError: asd is not defined
    at repl:1:5
    at Script.runInContext (vm.js:74:29)
    at REPLServer.defaultEval (repl.js:250:29)
    at bound (domain.js:376:14)
    at REPLServer.runBound (domain.js:389:12)

-V flag should be -v

C:\Users\jk23\dev\my_projects
Ξ» adonis -v

  error: unknown option `-v'


C:\Users\jk23\dev\my_projects
Ξ» adonis -V
2.1.8
```

New project install fails

I ran ./node_modules/.bin/adonis new src, as per the readme: http://www.adonisjs.com/docs/3.1/installation.

Using node 6.8.1, npm 3.10.8

I get the following error:

-----------AdonisJs requirements check--------------
AdonisJs needs Node.JS >=4.0.0 and npm >=3.0.0

verifying node.js and npm current installed versions...

Your current Node.JS version: 6.8.1
Your current npm version: 3.10.8

Cloning into 'src'...
cleaning project
setting up app key
Fixing ace file
installing dependencies may take a while
installing dependencies... [email protected] /home/rje/projects/divinote/server/src
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected]  (git+https://github.com/thetutlage/node-auto-loader.git#75c907108f56da6067fd8fc00fdc31fc5bf67e0c)
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected]  (git://github.com/crypto-utils/keygrip.git#f7b41c2f305cfa7030d7da9e64af9790aa3be93a)
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ └── [email protected] 
└─┬ [email protected] 
  └── [email protected] 

npm ERR! Linux 4.4.0-43-generic
npm ERR! argv "/home/rje/.nvm/versions/node/v6.8.1/bin/node" "/home/rje/.nvm/versions/node/v6.8.1/bin/npm" "install" "--no-optional"
npm ERR! node v6.8.1
npm ERR! npm  v3.10.8
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64
installing dependencies... \
npm ERR! Please include the following file with any support request:
npm ERR!     /home/rje/projects/divinote/server/src/npm-debug.log

adonis make:controler <controller_name> silently fails

adonis make:controller <controller_name> where <controller_name> is any single word i.e. "Test" fails silently, it returns nothing and no files are created within app/Controllers/Http

It is my understanding that we should use adonis make:controller <controller_name> rather than node ace make:controller <controller_name> as the commands are proxied by the new CLI.

node ace make:controller <controller name> results in the following error:

error: 'make:controller' is not a registered command

'adonis install' should run npm post-install hook

I think(??) I found a bug that adonis install does not run the postinstall npm script.

I noticed this because I used npm link to local packages. Well, npm 5 has a bug where running npm i unlinks packages. So I have a post-install to put them back.

It works with npm install but not with adonis install.

adonis cli inside monorepo doesn't work

I'm trying to use adonis inside monorepo with https://lernajs.io/ and yarn/yarn workspaces

my deps:

"@adonisjs/ace": "^5.0.1",
"@adonisjs/auth": "^3.0.4",
"@adonisjs/bodyparser": "^2.0.2",
"@adonisjs/cli": "^4.0.4",
"@adonisjs/cors": "^1.0.5",
"@adonisjs/fold": "^4.0.7",
"@adonisjs/framework": "^5.0.5",
"@adonisjs/ignitor": "^2.0.6",
"@adonisjs/lucid": "^5.0.3"

folder structure looks so:

.β”œβ”€β”€ packages
β”‚   └── api
β”‚       β”œβ”€β”€ node_modules
β”‚       β”œβ”€β”€ app
β”‚       β”‚   β”œβ”€β”€ Controllers
β”‚       β”‚   β”‚   └── Http
β”‚       β”‚   β”‚       └── HelloWorldController.js
β”‚       β”‚   └── Models
β”‚       β”‚       β”œβ”€β”€ Hooks
β”‚       β”‚       β”‚   └── User.js
β”‚       β”‚       β”œβ”€β”€ Token.js
β”‚       β”‚       └── User.js
β”‚       β”œβ”€β”€ config
β”‚       β”‚   β”œβ”€β”€ app.js
β”‚       β”‚   β”œβ”€β”€ auth.js
β”‚       β”‚   β”œβ”€β”€ bodyParser.js
β”‚       β”‚   β”œβ”€β”€ cors.js
β”‚       β”‚   └── database.js
β”‚       β”œβ”€β”€ database
β”‚       β”‚   β”œβ”€β”€ migrations
β”‚       β”‚   β”‚   β”œβ”€β”€ 1503250034279_user.js
β”‚       β”‚   β”‚   └── 1503250034280_token.js
β”‚       β”‚   └── factory.js
β”‚       β”œβ”€β”€ start
β”‚       β”‚   β”œβ”€β”€ app.js
β”‚       β”‚   β”œβ”€β”€ kernel.js
β”‚       β”‚   └── routes.js
β”‚       β”œβ”€β”€ ace
β”‚       β”œβ”€β”€ package.json
β”‚       └── server.js
β”œβ”€β”€ lerna.json
β”œβ”€β”€ node_modules
β”œβ”€β”€ package.json
└── yarn.lock

here is lerna config

{
  "lerna": "2.9.0",
  "packages": [
    "packages/*"
  ],
  "npmClient": "yarn",
  "useWorkspaces": true,
  "version": "0.0.0"
}

just try to execute adonis --help inside ./packages/api cwd
it throws an error:

Error: Cannot find module '/Users/user/project/packages/api/node_modules/@adonisjs
/ace'

1 Ignitor._registerCommands
  /Users/user/project/node_modules/@adonisjs/ignitor/src/Ignitor/index.js:411

2 Ignitor.fire
  /Users/user/project/node_modules/@adonisjs/ignitor/src/Ignitor/index.js:754

so there is two node_modules folders

  1. in project root
  2. in package/api folder

as I see cli util tries to resolve node_modules inside packages/api folder, but lerna/yarn workspaces use hoisting (https://github.com/lerna/lerna/#--hoist-glob) for modules and creates symlinks only for .bin

as a short solution, to make it work, I just use postinstall hook and create an symlink manually: cd packages/api/node_modules && ln -s ../../../node_modules/@adonisjs

Error: Cannot find module ../../../ib/boxen

Hi, i just install adois's cli on a new mac,
when I'm running the serve command I'm getting this error:
Error: Cannot find module '../../../lib/boxen'
but the server works.

skip loading `start/events.js` while running adonis/ace

Can't say if I'm posting this issue on the right repo...

My application has defined some Redis event listeners in event.js file.
I've prepared a new command which is supposed to listen on MQ backend for new jobs (so it's a long-running command).

While running command application is still listening for events.
In my case, it was resulting in doubled events which were later stored twice in db.

I know that this may not be an issue, however, I'm wondering whether this behavior is correct.
Ace commands may have side-effects which should not happen while running a command.

IMO ace command should not listen for Redis events (in general not load events.js file).

What do you think about it?

adonis make:model model

When attempting to create a Lucid model named model the command runs, but the resulting JS file is created in the apps directory and not apps/Models.

Package version

$ adonis --version
4.1.0

Node.js and npm version

$ npm -v
6.7.0
$ node -v
v11.13.0

Sample Code (to reproduce the issue)

$ adonis make:model model
βœ” create  app/Models.js

SyntaxError: Unexpected identifier - on fresh `npm i -g @adonisjs/cli`

Node Version: v6.11.4
NPM Version: 5.5.1
System OS: Windows 10 Pro - x64

Error Stack:

  async handle ({ name }, options) {
        ^^^^^^

SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\0x90\AppData\Roaming\npm\node_modules\@adonisjs\cli\src\Commands\index.js:18:8)

As the title says, this was done on a truly fresh install (without any prior installation) straight from the guide at http://adonisjs.com/docs/4.0/installation


Closed - Didn't noticed I needed Node 8.0+ Sorry!

Adonis CLI not work

Hi, after install adonis cli via npm and try on command prompt always show like this.

'adonis' is not recognized as an internal or external command,
operable program or batch file.

How to solve this?
thanks before

adonis new --local

interesting reading lately recommending NOT installing packages globally, thereby ensuring that older codebases stay functional as they were built.

this means that to start a new adonis project I have to create a throw-away wrapper

mkdir yardstick_wrapper && cd $_
yarn init
yarn add --dev adonis-cli

adonis new yardstick --yarn
cd yardstick
yarn add --dev adonis-cli

cd ../..
mv yardstick_wrapper/yardstick .
rm -rf yardstick_wrapper

perhaps you could add a --local flag (or --here) to not create and enter the application directory?

Error when Foldername has Space Windows 10

Hi when i have a Folder with space
when use adonis serve --dev
I get this error:

C:\Arbeit Wichtig\amalyanshop>adonis serve --dev
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      β”‚
β”‚    Started server    β”‚
β”‚    Watcher: On       β”‚
β”‚    Debugger: Off     β”‚
β”‚                      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
module.js:473
      throw err;
      ^

Error: Cannot find module 'C:\Arbeit Wichtig\amalyanshop\"C:\Arbeit'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:453:25)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:201:16)
    at bootstrap_node.js:626:3

serve --dev unable to watch uncommon file extensions

Looking at the source code i can see you are now unable to set a custom file extensions for nodemon too watch. in my case i'm creating an graphql api so i have a lot of .graphql files, i would like to set this extension in the serve --dev command. For now i can use nodemon directly but it would be nice if you can set your own extensions. I can probably make a pr soon when i have some more time though :)

Command serve in dev mode add skip watch on exclude files

I write code in PhpStorm. IDE created dir .idea. In watch mode this dir is system and it is should not be watched.

Sample output log:

$ adonis serve --dev

 Started server in dev mode 

2017-08-11T12:19:12.424Z - info: serving app on http://127.0.0.1:3333
add  .idea/workspace.xml
2017-08-11T12:19:52.460Z - info: serving app on http://127.0.0.1:3333

Please add a .gitignore file in database folder for sqlite

Prerequisites

We do our best to reply to all the issues on time. If you will follow the given guidelines, the turn around time will be faster.

  • Lots of raised issues are directly not bugs but instead are design decisions taken by us.
  • Make use of our forum, or discord server, if you are not sure that you are reporting a bug.
  • Ensure the issue isn't already reported.
  • Ensure you are reporting the bug in the correct repo.

Delete the above section and the instructions in the sections below before submitting

Package version

5.0.8

Node.js and npm version

v11.3.0

6.5.0

Sample Code (to reproduce the issue)

Please add a .gitignore file in database folder for sqlite:

*.sqlite

BONUS (a sample repo to reproduce the issue)

Use always the first configured package manager

Why this feature is required (specific use-cases will be appreciated)?

When you create an adonis app the first time, you select the package manager you prefer (npm or yarn currently). Thing is that this option doesn't seems to be stored somewhere so everytime I need to add a new package I always have to specify --yarn if my configuration was using yarn. If I forgot it than npm will kick in and will pollute node modules and my repo with npm locks etc.

I'm suggesting to save this configuration somewhere and let adonis-cli to read it and use it as the predefined package manager

Have you tried any other work arounds?

No

Are you willing to work on it with little guidance?

Possibly :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.