Ruanjun

1666 经验值


E:\phpStudy\PHPTutorial\WWW\pluck-test>composer require ruanlianjun/aliyunlive


  [InvalidArgumentException]
  Could not find package ruanlianjun/aliyunlive at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowe
st] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
E:\phpStudy\PHPTutorial\WWW\pluck-test>composer show ruanlianjun/aliyunlive --all


  [InvalidArgumentException]
  Package ruanlianjun/aliyunlive not found

前面一直ok,但是当我require的时候就出现这个问题,请问是什么原因呢

配置是正确的,我用php artisan config:clear 后又可以了

$data = array_merge($data, [
            'client_id'     => env('PASSPORT_CLIENT_ID'),
            'client_secret' => env('PASSPORT_CLIENT_SECRET'),
            'grant_type'    => $grantType
        ]);

        return $data;
        $res = $this->http->post('http://spavue.cn/oauth/token', [
            'form_params' => $data
        ]);

这里的data数据中env获取的数据一直是空的null,然后他就报错了,提示缺少参数

@JellyBool 大神可以帮我看一下吗,我用laravle-echo配置的socket 没有报错一切看起来很正常,但是控制台就是没有输出内容
https://segmentfault.com/q/1010000009742110

npm caceh clear 应该是这个命令,然后看一下element的安装文档有一个.blxxx文件要配置一下其他的基本没有什么问题了

> @ development D:\phpStudy\WWW\laravel_element
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

系统找不到指定的路径。
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: spawn node_modules/webpack/bin/webpack.js ENOENT
    at notFoundError (D:\phpStudy\WWW\laravel_element\node_modules\[email protected]@cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (D:\phpStudy\WWW\laravel_element\node_modules\[email protected]@cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (D:\phpStudy\WWW\laravel_element\node_modules\[email protected]@cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/w
ebpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ruan0.0\AppData\Roaming\npm-cache\_logs\2017-05-26T08_07_24_887Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ruan0.0\AppData\Roaming\npm-cache\_logs\2017-05-26T08_07_30_932Z-debug.log