我刚刚通过nodejs.org上的软件包安装了node和npm,每当我尝试使用npm搜索或安装某些内容时,它会抛出以下错误,除非我sudo命令.我觉得这是一个权限问题?我已经是管理员了.
npm ERR! Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json'
npm ERR! { [Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/chietala/.npm/-/all/.cache.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "search" "bower"
npm ERR! cwd /Users/chietala
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! path /Users/chietala/.npm/-/all/.cache.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack …Run Code Online (Sandbox Code Playgroud) 我试图在laravel 5.2中运行此命令,但它无法正常工作.
php artisan make:auth
并提示这些陈述.
[InvalidArgumentException]命令"make:auth"未定义你的意思是其中之一吗?
php artisan make:auth
Run Code Online (Sandbox Code Playgroud) 我正在使用Laravel 6.2.0,并且make:auth终端中未定义命令。有什么解决办法吗?注意Composer已经更新。
我想创建一个新项目,以便可以稍微进行身份验证,看看我能做什么。但是,当我尝试运行make:auth命令时,出现错误。
我决定查看composer.json文件,看看我是否拥有过时的Composer版本,但是我看到了更新的laravel / framework。
我找不到有关make:auth被删除的命令的任何信息,所以我想我会来这里询问。
Command "make:auth" is not defined.
Did you mean one of these?
make:channel
make:command
make:controller
make:event
make:exception
make:factory
make:job
make:listener
make:mail
make:middleware
make:migration
make:model
make:notification
make:observer
make:policy
make:provider
make:request
make:resource
make:rule
make:seeder
make:test
Run Code Online (Sandbox Code Playgroud) 这是我做的第一件事
php artisan make:auth
Run Code Online (Sandbox Code Playgroud)
结果:
Run Code Online (Sandbox Code Playgroud)Command "make:auth" is not defined. Did you mean one of these? make:channel make:command make:controller make:event make:exception make:factory make:job make:listener make:mail make:middleware make:migration make:model make:notification make:observer make:policy make:provider make:request make:resource make:rule make:seeder make:test
第二个:
php artisan ui vue --auth php artisan ui react --auth
我试过这个,这是结果
Run Code Online (Sandbox Code Playgroud)The "http://repo.packagist.org/p/provider-2015%24e84cdb7b9b7175f18a814c1783741a3ba6b021c4a78701285cc5639d0d1ee4e6.json"文件无法下载:无法打开流:HTTP 请求失败!
Run Code Online (Sandbox Code Playgroud)http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
我该怎么办?-谢谢
当我运行此命令时: php artisan make:auth
我收到一个错误:
未定义命令“ make:auth”。
我的命令有问题php artisan make:auth。如何在Laravel中创建登录名