Open git4wht opened 6 years ago
@git4wht 你好
我只在windows上和mac上运行,而且对Linux不是很熟悉,不能提供什么帮助。
但是从报错上来看,好像是你的Node公共环境变量的问题?
是编译时出错。 我选择npm install -g objto3dtiles 之后,是可以安装运行的
I don't speak Chinese so not sure if I'm much help. It seems like you're using windows line endings which aren't compatible with Ubuntu. If you change the file to use unix line endings it works fine. I did something like this:
cd /usr/local/lib/node_modules/obj23dtiles/bin
open the obj23dtiles.js
file in vim then run the following:
:se ff=unix
:wq
@jabelone Thanks! 问题解决了.
My path:cd /usr/lib/node_modules/obj23dtiles/bin/
Ubuntu上总是说“/usr/bin/env: ‘node\r’: No such file or directory”