Homestead 下架设的问题

按照这个弄的
https://github.com/summerblue/phphub/wiki/PHPhub-开发环境部署

到了 npm install 似乎就不行了

$npm install
npm WARN package.json @ No repository field.
npm WARN unmet dependency /home/vagrant/Code/phphub/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/glob requires minimatch@'^2.0.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /home/vagrant/Code/phphub/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob requires graceful-fs@'~1.2.0' but will load
npm WARN unmet dependency /home/vagrant/Code/phphub/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs,
npm WARN unmet dependency which is version 3.0.5
npm WARN unmet dependency /home/vagrant/Code/phphub/node_modules/gulp-minify-css/node_modules/gulp-util/node_modules/dateformat/node_modules/meow requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /home/vagrant/Code/phphub/node_modules/gulp-minify-css/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/indent-string requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined

然后运行 gulp

$gulp

Error: Cannot find module 'clone'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/vagrant/Code/phphub/node_modules/gulp/node_modules/gulp-util/node_modules/vinyl/index.js:2:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
$ npm ls -g installed
/usr/lib
└── (empty)
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 2
Summer

如果可以的话, 再 homestead provision 下.

如果还有问题的话, 先确定 npm 和 nodejs 是否有问题, 就是平常的用法的话, 是否还会这样.

还有就是请提供相关软件的版本号.

9年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!