我有一个项目,我没有触摸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) 我在这里有一个应用程序,我需要将徽标放在导航栏中.那需要溢出场景布局.在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) 嗨,我跑步时遇到问题
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等卸载。更改我的数据文件夹的权限,并始终遇到相同的问题。