小编r.o*_*gan的帖子

监视者:加载共享库时出错:libpcre.so.1

我在Ubuntu 15.10上,并且正在使用react-native(0.20.0)开发一个Android(SDK 23)应用程序。我正在使用节点5.6.0和npm 3.6.0。

我在运行时遇到看守错误 react-native start

ERROR  watchman--no-pretty get-sockname returned with exit code 127 watchman: 
error while loading shared libraries: libpcre.so.1: cannot open shared object 
file: No such file or directory

    at ChildProcess.<anonymous> (/home/rachael/Dev/InstaGo/node_modules/fb-watchman/index.js:198:18)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:827:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:471:12)
Run Code Online (Sandbox Code Playgroud)

当我运行时sudo find / -name libpcre.so.1,返回以下内容:

/home/rachael/.linuxbrew/lib/libpcre.so.1
/home/rachael/.linuxbrew/Cellar/pcre/8.38/lib/libpcre.so.1
Run Code Online (Sandbox Code Playgroud)

我试过重新安装watchman:

make uninstall

git clone https://github.com/facebook/watchman.git 
cd watchman 
git checkout v4.1.0 # the latest stable …
Run Code Online (Sandbox Code Playgroud)

android facebook node.js watchman react-native

5
推荐指数
1
解决办法
1051
查看次数

标签 统计

android ×1

facebook ×1

node.js ×1

react-native ×1

watchman ×1