ruby - mac os gulp scss 错误
阿神
阿神 2017-04-24 09:11:07
0
2
898
zandeMacBook-Pro:react-app-template zan$ gulp
[21:40:35] Requiring external module babel-core/register
[21:40:36] Using gulpfile /Users/www/react/react-app-template/gulpfile.babel.js
[21:40:36] Starting 'js:lint'...
[21:40:36] Starting 'scss:lint'...
[21:40:36] Starting 'jade'...
[21:40:36] 'scss:lint' errored after 218 ms
[21:40:36] Error in plugin 'gulp-scss-lint'
Message:
    You need to have Ruby and scss-lint gem installed
[21:40:36] Finished 'jade' after 237 ms
[21:40:36] Finished 'js:lint' after 372 ms

提示

You need to have Ruby and scss-lint gem installed

这个 该怎么办?Ruby 有呀 scss-lint 怎么办?

gem install scss-lint

zandeMacBook-Pro:react-app-template zan$ gem install scss-lint
Fetching: rainbow-2.0.0.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
zandeMacBook-Pro:react-app-template zan$ gulp
[21:56:32] Requiring external module babel-core/register
[21:56:33] Using gulpfile /Users/www/react/react-app-template/gulpfile.babel.js
[21:56:33] Starting 'js:lint'...
[21:56:33] Starting 'scss:lint'...
[21:56:33] Starting 'jade'...
[21:56:33] 'scss:lint' errored after 230 ms
[21:56:33] Error in plugin 'gulp-scss-lint'
Message:
    You need to have Ruby and scss-lint gem installed
[21:56:33] Finished 'jade' after 230 ms
[21:56:33] Finished 'js:lint' after 362 ms

You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

sudo gem install scss-lint
阿神
阿神

闭关修行中......

reply all(2)
阿神

What about adding sudo?

PHPzhong

sudo gem install -n /usr/local/bin gulp-scss-lint

via: http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error/30851030

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template