运行 gulp 报错

win10下,装的最新Homestead,gulp的时候报错。

`vagrant@homestead:~/Code/fmk$ gulp
[07:14:50] Using gulpfile ~/Code/fmk/gulpfile.js
[07:14:50] Starting 'default'...
[07:14:50] Starting 'styles'...

Fetching Styles Source Files...

  • resources/assets/dep/bootstrap/dist/css/bootstrap-paper.min.css
  • resources/assets/dep/animate-css/animate-css.min.css
  • resources/assets/dep/textAngular/dist/textAngular.css
  • resources/assets/dep/font-awesome/css/font-awesome.min.css

Saving To...

  • public/admin/css/dep.css

[07:14:55] Finished 'default' after 5.05 s
[07:14:55] gulp-notify: [Laravel Elixir] Stylesheets Merged!
[07:14:55] Finished 'styles' after 5.47 s
[07:14:55] Starting 'sass'...
[07:14:56] 'sass' errored after 366 ms
[07:14:56] Error: The libsass binding was not found in /home/vagrant/Code/fmk/node_modules/node-sass/vendor/linux-x64-47/binding.node
This usually happens because your node version has changed.
Run npm rebuild node-sass to build the binding for your current node version.
at Object.sass.getBinaryPath (/home/vagrant/Code/fmk/node_modules/node-sass/lib/extensions.js:158:11)
at Object. (/home/vagrant/Code/fmk/node_modules/node-sass/lib/index.js:16:36)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/vagrant/Code/fmk/node_modules/gulp-sass/index.js:186:21)
at Module._compile (module.js:425:26)
[07:14:56] Error in plugin 'run-sequence'
Message:
An error occured in task 'sass'.
vagrant@homestead:~/Code/fmk$ gulp -v
[07:19:45] CLI version 3.9.0
[07:19:45] Local version 3.9.1
运行npm install` 的时候也报错。如下

` npm install --no-bin-links
npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--no-bin-links"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6

npm ERR! Maximum call stack size exceeded
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--no-bin-links"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! path npm-debug.log.514498fc5bd9b23815a265daa282db93
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename

npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.514498fc5bd9b23815a265daa282db93' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/Code/fmk/npm-debug.log
`

求大神指点。谢谢

逍遥客
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 1
hkzj0571

我也一样

6年前 评论

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