我输入 gem和sass的都有问题?老师看下,为啥,

我输入 gem和sass的都有问题?老师看下,为啥,

babel还没安装好,这又安装个这东西,又出错 跟着教程都会出错误,怎么不一样呢?

还能不能继续往下学了!!!!!!!!!!!!!!!!!!!!!!

C:\Users\Administrator>gem -v

Traceback (most recent call last):

        23: from <internal:gem_prelude>:5:in `<internal:gem_prelude>'

        22: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        21: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        20: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean.rb:5:in `<top (required)>'

        19: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        18: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        17: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb:1:in `<top (required)>'

        16: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        15: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        14: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb:2:in `<top (required)>'

        13: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'

        12: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'

        11: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:213:in `try_activate'

        10: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find_by_path'

         9: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find'

         8: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `each'

         7: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1064:in `block in find_by_path'

         6: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'

         5: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'

         4: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:213:in `try_activate'

         3: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find_by_path'

         2: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find'

         1: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `each'

D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1064:in `block in find_by_path': uninitialized constant Gem::BundlerVersionFinder (NameError)


C:\Users\Administrator>gem install sass

Traceback (most recent call last):

        23: from <internal:gem_prelude>:5:in `<internal:gem_prelude>'

        22: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        21: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        20: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean.rb:5:in `<top (required)>'

        19: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        18: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        17: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb:1:in `<top (required)>'

        16: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        15: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

        14: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb:2:in `<top (required)>'

        13: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'

        12: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'

        11: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:213:in `try_activate'

        10: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find_by_path'

         9: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find'

         8: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `each'

         7: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1064:in `block in find_by_path'

         6: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'

         5: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'

         4: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:213:in `try_activate'

         3: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find_by_path'

         2: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `find'

         1: from D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1063:in `each'

D:/新装软件/ruby/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1064:in `block in find_by_path': uninitialized constant Gem::BundlerVersionFinder (NameError)


C:\Users\Administrator>sass -v

'sass' 不是内部或外部命令,也不是可运行的程序

或批处理文件。


C:\Users\Administrator>


正在回答

登陆购买课程后可参与讨论,去登陆

6回答

同学你好,有些软件默认会将配置相关的信息安装到C盘,如果安装到其它盘可能就会造成一些列未知的错误,所以一般推荐是直接装在C盘。 

同学能够找到错误,真棒,以后遇到问题时我们也不要急躁,慢慢解决就可以了 ,在解决过程中,也对是我们处理错误能力的一种提升哦。

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

好帮手慕慕子 2020-01-16 16:36:23

同学你好, 老师非常能够理解同学的心情,遇到错误解决不了真的是会很烦躁,但是老师这边与同学的电脑环境不一样,无法复现同学说的这种的错误。 建议:尝试运行下面的命令:

gem update bundler

如果问题仍未解决,则可能需要运行下面的命令:

gem update --system

若仍然无法解决,可能是环境问题,建议:可以重新安装下ruby哦。

希望能帮助到你,祝学习愉快!

  • 提问者 你要去哪 #1
    老师,我查出原因了,我装c盘就可以了,不能装别的盘里只能c盘呀
    2020-01-16 23:22:30
  • 提问者 你要去哪 #2
    老师我用的hbuilder 还要安装package.controal插件吗?要安装别的插件吗
    2020-01-16 23:25:30
好帮手慕慕子 2020-01-16 16:12:08

同学你好, 可以先尝试使用ruby  -v命令,测试ruby是否安装成功,示例:可以正常显示对应的版本号,表示已经成功安装。

http://img1.sycdn.imooc.com//climg/5e201a3d09d4f4d006380113.jpg

如果没有出现版本号的话,那么就需要重新安装一次ruby, 安装后,再使用ruby -v测试一下是否安装成功,如果还有问题的话,可以将报错信息再次粘贴过来,老师一定会帮助同学想办法解决的。

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

  • 提问者 你要去哪 #1
    我是ruby -v 成功之后,接着做的出现的错误,成功的我没必要粘贴过去啊,
    2020-01-16 16:15:37
好帮手慕慕子 2020-01-16 16:02:17

同学你好,抱歉是老师粗心了,给同学造成不好的体验,同学安装成功了吗?如果没有的话,可以你的报错信息粘贴过来,老师一定会想办法帮助同学解决的,祝学习愉快~

  • 提问者 你要去哪 #1
    我一开始已经粘过去了好吗,
    2020-01-16 16:06:05
好帮手慕慕子 2020-01-16 10:51:02

同学你好,gem是Mac电脑上命令,在windows电脑上不可以使用的。

window电脑上安装sass, 可以参考我们提供的教辅资料

http://img1.sycdn.imooc.com//climg/5e1fcbf4097baafc03820233.jpg

http://file.mukewang.com/class/assist/823/4558021/92izxal9fgt/Sasssublime%E7%BC%96%E8%BE%91%E5%99%A8%E6%8F%92%E4%BB%B6%E7%BC%96%E8%AF%91%E6%96%B9%E6%B3%95.pdf 

如果安装过程中遇到问题,可以在问答区详细描述下具体做了哪些操作,老师一定会想办法帮助同学解决的。

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

  • 提问者 你要去哪 #1
    你们提供的教辅你们自己看过么,上面就用的gem,我就是看着教辅跟着做的
    2020-01-16 15:01:53
  • 提问者 你要去哪 #2
    你们提供的教辅你们自己看过么,上面就用的gem,我就是看着教辅跟着做的
    2020-01-16 15:01:53
提问者 你要去哪 2020-01-16 01:50:27

气的我想哭。。。。求老师远程控制我的电脑帮我安装

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师