Install dependency that does not have a package.json file

0

How you can install with npm or bower a project in github which does not have a package.json file, for example, in composer you can create a package of the following way:

{
...
"repositories": [
        {
            "type": "package",
            "library": true,
            "package": {
                "name": "mevdschee/php-api-auth",
                "version": "1",
                "source": {
                    "url": "https://github.com/mevdschee/php-api-auth.git",
                    "type": "git",
                    "reference": "master"
                },
                "autoload": {
                    "files": [
                        "auth.php"
                    ]
                }
            }
        }
    ],
    "require": {
        "mevdschee/php-api-auth": "1",
        "mevdschee/php-crud-api": "^1.2",
        "phpmailer/phpmailer": "^6.0",
        "mustache/mustache": "^2.12",
        "google/apiclient": "2.0"
    },
...
}

Is there an equivalent in nodeJS for this action?

    
asked by jon_eldiablo 13.03.2018 в 02:24
source

0 answers