React native npm开始不工作创建反应本机应用程序

React native npm开始不工作创建反应本机应用程序,react-native,ubuntu-16.04,create-react-native-app,React Native,Ubuntu 16.04,Create React Native App,npm版本是4.6.1 另请参阅 我创建了一个普通的hello world应用程序并尝试 create-react-native-app HelloWorldVatsal 它创建了应用程序,加载了所有模块等,并在终端上给出了成功消息 在那之后,我做了如下的事情 cd HelloWorldVatsal npm start 从下面显示的错误消息行中可以看到 See https://git.io/v5vcn for more information, either install watchma

npm版本是4.6.1 另请参阅

我创建了一个普通的hello world应用程序并尝试

create-react-native-app HelloWorldVatsal
它创建了应用程序,加载了所有模块等,并在终端上给出了成功消息

在那之后,我做了如下的事情

cd HelloWorldVatsal
npm start


从下面显示的错误消息行中可以看到

See https://git.io/v5vcn for more information, either install watchman or run the following snippet:
    sudo sysctl -w fs.inotify.max_user_instances=1024
    sudo sysctl -w fs.inotify.max_user_watches=12288

您需要安装或运行错误消息中显示的代码段。

从下面显示的错误消息行中可以看到

See https://git.io/v5vcn for more information, either install watchman or run the following snippet:
    sudo sysctl -w fs.inotify.max_user_instances=1024
    sudo sysctl -w fs.inotify.max_user_watches=12288

您需要安装或运行错误消息中显示的代码段。

只需安装
watchman
就可以了:D

我的系统(mac)-->OSX 10.12.3

brew update

brew install watchman

只需安装
watchman
就可以了:D

我的系统(mac)-->OSX 10.12.3

brew update

brew install watchman

在mac上运行以下命令对我很有效:

sudo sysctl-w kern.maxfiles=5242880


sudo sysctl-w kern.maxfilesperproc=524288运行以下命令在mac上对我很有效:

sudo sysctl-w kern.maxfiles=5242880


sudo sysctl-w kern.maxfilesperproc=524288

谢谢。这解决了这个问题,但是,npm现在不支持watchman,他们说它过时了。有没有办法安装watchman?谢谢。这解决了这个问题,但是,npm现在不支持watchman,他们说它过时了。有没有办法安装watchman?