官方文档安装指导
Github添加链接描述
# under the manifold root directory, install all dependencies
yarn
# demo app is in examples/manifold directory
cd examples/manifold
# instal demo app dependencies
yarn
# start the app
npm run start
实际安装过程
2.1 安装yarn
brew install yarn
期间会安装icu4c,并有如下提示:
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have icu4c first in your PATH run:
echo ‘export PATH="/usr/local/opt/icu4c/bin:
P
A
T
H
"
′
>
>
/
.
b
a
s
h
p
r
o
f
i
l
e
e
c
h
o
′
e
x
p
o
r
t
P
A
T
H
=
"
/
u
s
r
/
l
o
c
a
l
/
o
p
t
/
i
c
u
4
c
/
s
b
i
n
:
PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/icu4c/sbin:
PATH"′>> /.bashprofileecho′exportPATH="/usr/local/opt/icu4c/sbin:PATH"’ >> ~/.bash_profile
For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
==> Summary
🍺 /usr/local/Cellar/icu4c/64.2: 257 files, 69.2MB
当时并没有执行以上提示。
2.2 用yarn安装依赖
cd manifolde
yarn
报错:
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which
failed Error: not found: python2
…
最终解决办法:
执行2.1 icu4c 安装过程中的提示。
之后的安装过程没有出现问题。