Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
git4wht opened this issue May 11, 2018 · 4 comments
Open

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

git4wht opened this issue May 11, 2018 · 4 comments

Comments

@git4wht
Copy link

git4wht commented May 11, 2018

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

@PrincessGod
Copy link
Owner

@git4wht 你好

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

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

@git4wht
Copy link
Author

git4wht commented May 15, 2018

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

@jabelone
Copy link

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
Copy link

alx696 commented Dec 6, 2018

@jabelone Thanks! 问题解决了.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants