小编San*_*eri的帖子

无法卸载angular-cli

我已经多次尝试卸载我的angular-cli以便更新它,但即使我按照github上提供的说明操作:

  • npm uninstall -g @ angular/cli
  • npm缓存清理
  • npm install -g @ angular/cli @ latest

当我使用命令ng --version检查时,我仍然得到旧版本:

 angular-cli: 1.0.0-beta.26

 node: 7.7.1
 os: darwin x64
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?谢谢

node.js npm angular

21
推荐指数
7
解决办法
7万
查看次数

使用Genymotion模拟器与Ionic框架

我已经下载并安装了genymotion并创建并构建了我的离子应用程序.

当我尝试使用以下命令运行genymotion模拟器时:

ionic run android
Run Code Online (Sandbox Code Playgroud)

我收到以下回复:

没有指定目标,部署到模拟器
没有指定模拟器,默认为Nexus_5_API_21_x86
等待模拟器...
模拟器:错误:x86模拟当前需要硬件加速!
请确保正确安装和使用Intel HAXM.
CPU加速状态:未安装HAX内核模块!

模拟器无法正常工作.有任何想法吗?

android cordova genymotion ionic-framework

13
推荐指数
2
解决办法
2万
查看次数

安装rails json gem时出错 - bundler无法继续

我在Windows上安装Rails时出现问题.它无法安装json gem,下面会显示错误消息.

      create  test/integration/.keep
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.keep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.keep
         run  bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...........
Using rake 10.4.2
Using i18n 0.7.0

Gem::InstallError: The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing json (1.8.3), …
Run Code Online (Sandbox Code Playgroud)

rubygems ruby-on-rails ruby-on-rails-4

5
推荐指数
2
解决办法
6942
查看次数

泊坞窗无法注册层错误处理

我刚刚在ubuntu 16.04上安装了docker。

我的docker版本是17.12.0-ce,内部版本c97c6d6

我从开始我的码头工人

sudo service docker start
Run Code Online (Sandbox Code Playgroud)

它开始运行。当我尝试跑步时

docker run hello-world
Run Code Online (Sandbox Code Playgroud)

我收到以下消息

Unable to find image 'hello-world:latest' locally

latest: Pulling from library/hello-world
ca4f61b1923c: Extracting 
[==================================================>]     985B/985B
docker: failed to register layer: Error processing tar file(exit status 1): 
invalid argument.
Run Code Online (Sandbox Code Playgroud)

无法弄清楚发生了什么。

docker ubuntu-16.04

5
推荐指数
0
解决办法
754
查看次数

Bulma 下拉输入字段问题

我的表单中的下拉输入字段有问题。我在我的 Rails 应用程序中使用 Bulma。这是代码

<!-- Date of birth in _form.html.erb -->

 <div class="field">
 <label class="label">Date of birth</label>
 <p class="control">
 <span class="select">
 <%= f.date_select :date_of_birth, {order:[:day,:month,:year], start_year: 1975} %>
 </span>
 </p>
 </div>
Run Code Online (Sandbox Code Playgroud)

我得到以下结果:

在此处输入图片说明

如您所见,下拉元素(日期、月份和年份)未对齐,但它们折叠到下一个字段输入中。有什么建议?谢谢

css ruby-on-rails bulma

2
推荐指数
1
解决办法
1334
查看次数