mac os gulp scss 错误
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
AngelD奏
9 years, 4 months ago