用homestead出现的一些问题,问下大家有没有碰到过
我用homestead来安装laravel,安装的是最新的laravel8,就是照着文档,
composer create-project –prefer-dist laravel/laravel blog
这个倒是成功了。
但是当我 npm install,想把npm包下载下来时候,老是出现错误
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN ws@7.4.5 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.5 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/homecode/newblog/node_modules/@types/clean-css/node_modules/source-map/package.json.2732763670
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/homecode/newblog/node_modules/@types/clean-css/node_modules/source-map/package.json.2732763670'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2021-04-20T12_14_46_984Z-debug.log
然后再运行 npm run dev 时候就报
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @ development: `mix`
npm ERR! spawn ENOENT
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! /home/vagrant/.npm/_logs/2021-04-20T12_15_33_249Z-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! /home/vagrant/.npm/_logs/2021-04-20T12_15_33_426Z-debug.log
大家用homestead 有没有遇到过这种情况,还是我用的这个homestead 有什么问题?
是这个homestead里面配置有问题吗?
推荐文章: