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

env: node\r: No such file or directory #5

Closed
vqoph opened this issue Dec 12, 2017 · 8 comments
Closed

env: node\r: No such file or directory #5

vqoph opened this issue Dec 12, 2017 · 8 comments

Comments

@vqoph
Copy link

vqoph commented Dec 12, 2017

cli version 1.6.0
angular version 5.1.0
OS : OSX High sierra - 10.13.2 (17C88)

error on command ngx-extractor -i src/**/*.ts -f xlf -o src/i18n/source.xlf

the error env: node\r: No such file or directory
in file ./lib/extractor/ngx-extractor.ts

How to fix that : nwutils/nw-builder#75 (comment)

@ocombe
Copy link
Member

ocombe commented Dec 12, 2017

can you try with quotes like this: ngx-extractor -i "src/**/*.ts" -f xlf -o "src/i18n/source.xlf" ?

@vqoph
Copy link
Author

vqoph commented Dec 12, 2017

same error :

$ yarn extract
yarn run v1.3.2
$ ngx-extractor  -i "src/**/*.ts" -f xlf -o "src/i18n/source.xlf"
env: node\r: No such file or directory
error Command failed with exit code 127.

It's look like an encoding error

@vqoph
Copy link
Author

vqoph commented Dec 12, 2017

it's work with :

node ./node_modules/@ngx-translate/i18n-polyfill/extractor/ngx-extractor -i "src/**/*.ts" -f xlf -o src/i18n/source.xlf

when the file is interpreted as a node script, but the encoding error raise when we call it as a command

@ocombe ocombe closed this as completed in 19a847b Dec 12, 2017
@vqoph
Copy link
Author

vqoph commented Dec 12, 2017

the workaround work, but the issue is not fixed the file still encoded in DOS

@ocombe
Copy link
Member

ocombe commented Dec 12, 2017

I've just pushed the fix, new release inc

@vqoph
Copy link
Author

vqoph commented Dec 12, 2017

thx

@ocombe
Copy link
Member

ocombe commented Dec 12, 2017

Can you try v0.1.1 please?

@vqoph
Copy link
Author

vqoph commented Dec 12, 2017

Tested with 0.1.1 and ngx-extractor command work as expected, thank you :)

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

2 participants