PrincessGod / objTo3d-tiles

Convert obj model file to 3d tiles
https://princessgod.github.io/objTo3d-tiles
Apache License 2.0
777 stars 232 forks source link

在Ubuntu18.04上执行错误,Win10上OK #19

Open git4wht opened 6 years ago

git4wht commented 6 years ago

Ubuntu上总是说“/usr/bin/env: ‘node\r’: No such file or directory”

PrincessGod commented 6 years ago

@git4wht 你好

我只在windows上和mac上运行,而且对Linux不是很熟悉,不能提供什么帮助。

但是从报错上来看,好像是你的Node公共环境变量的问题?

git4wht commented 6 years ago

是编译时出错。 我选择npm install -g objto3dtiles 之后,是可以安装运行的

jabelone commented 6 years ago

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
alx696 commented 5 years ago

@jabelone Thanks! 问题解决了.

My path:cd /usr/lib/node_modules/obj23dtiles/bin/