小编EQu*_*per的帖子

使用create-react-app命令npm启动错误

我有一个项目,我没有触摸2周.我收回它,现在当我尝试运行时,npm start我收到了这个错误.

> react-scripts start

sh: react-scripts: command not found

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! UpScore@0.6.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the UpScore@0.6.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and …
Run Code Online (Sandbox Code Playgroud)

javascript reactjs create-react-app

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

react-native .toLocaleString()不适用于android

我正在使用.toLocaleString()react-native来获取我的数字输出.所有关于IOS的工作但似乎不适用于Android.这是正常的还是?我需要使用小数函数吗?

在此输入图像描述

react-native

15
推荐指数
5
解决办法
4393
查看次数

隐藏在React-Native Android中的元素溢出

我在这里有一个应用程序,我需要将徽标放在导航栏中.那需要溢出场景布局.在Ios中运行良好没有问题,但在android中似乎他不工作.我把代码放在图像的底部.如你所见,我使用EStyleSheet让我使用%.

IOS

在此输入图像描述

Android的

在此输入图像描述

import React from 'react';
import { Scene, Router } from 'react-native-router-flux';
import EStyleSheet from 'react-native-extended-stylesheet';
import { View, Platform } from 'react-native';
import { SmallLogo } from './components';
import { checkColor } from './helpers';
import {
  HomeScreen,
  ImagePickerScreen,
  WaitingResponseScreen,
  ResultsScreen
} from './modules';
import Colors from '../constants/Colors';

const styles = EStyleSheet.create({
  navStyle: {
    flex: 1,
    marginTop: '5%',
    alignItems: 'center',
  },
  logoCircle: {
    backgroundColor: '$whiteColor',
    height: 60,
    width: 60,
    borderRadius: 30,
    justifyContent: 'center',
    alignItems: 'center'
  }
});

const …
Run Code Online (Sandbox Code Playgroud)

android reactjs react-native react-native-android

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

在Mac上的mongodb错误导致权限被拒绝

嗨,我跑步时遇到问题

mongod
Run Code Online (Sandbox Code Playgroud)

这就是我得到的

2016-02-09T21:54:40.631-0700 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.

2016-02-09T21:54:40.633-0700 I STORAGE  [initandlisten] exception in initAndListen: 98 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating
2016-02-09T21:54:40.633-0700 I CONTROL  [initandlisten] dbexit:  rc: 100
Run Code Online (Sandbox Code Playgroud)

我尝试一切卸载mongo。用brew安装。用brew等卸载。更改我的数据文件夹的权限,并始终遇到相同的问题。

macos error-handling terminal mongodb

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