-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Bug: /usr/bin/env: ‘node\r’: No such file or directory #78
Comments
Please fix it! |
I'm experiencing this issue as well. It's because the file I can't submit a PR because the repo is correct but somehow, the npm package is messed up. This is what I see for the bin file in vscode. See the highlight in the bottom right: |
Are you guys on the latest version? @jamesgeorge007 Can you take a look here. |
Yes I'm on 4.4.0. On a Linux/MacOS machine, the following shows that the
The above downloads the docsify-cli tarball from npm and unpacks the contents and finally, opens it in VSCode. The file shows CRLF line endings. The issue could be because it's published using a Windows machine. Git is probably converting CRLF's to LF's which is why the repo file is fine. It's just the published file in the bin folder. PS: I've never encountered this before either. Learn something new every day! 😀 |
@felangel if it's possible can you do a patch release if you have a |
You can simply cd to /usr/local/lib/node_modules/docsify-cli/bin |
I just opened But it's indeed annoying. |
@jamesgeorge007 could you do a patch release soon. |
I was taking a look on the project structure, does it makes sense to have a sort of |
yeah...that's a good option to have proper build steps and automatic releases. |
Will do! Thanks @anikethsaha |
This issue will be fixed as soon the a new version gets launch. Thanks @anikethsaha for the feedbacks |
Ahh it works thank you much. |
@DeeperDing Why is this closed if a there's no new release to fix the issue? 🤔 |
Yup, lets keep it open until the release |
BTW, if you'd like, you can set up a free CI pipeline with codefresh.io (I'm not affiliated with the firm).
Merges to master can trigger a build and release to npm so build machine issues do not ripple into releases.
I'd be happy to help if required.
…________________________________
From: Anix <[email protected]>
Sent: Sunday, December 29, 2019 7:09:15 AM
To: docsifyjs/docsify-cli <[email protected]>
Cc: Narayan Sainaney <[email protected]>; Comment <[email protected]>
Subject: Re: [docsifyjs/docsify-cli] Bug: /usr/bin/env: ‘node\r’: No such file or directory (#78)
Yup, lets keep it open until the release
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#78?email_source=notifications&email_token=AACKY5ISEIAHBSY65HC7QJDQ3C4RXA5CNFSM4JXOALT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZBQGI#issuecomment-569514009>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACKY5MBYKFQMZZIS2RCFZ3Q3C4RXANCNFSM4JXOALTQ>.
|
That's really helpful 🎉 |
none of the solutions work if you install it via volta |
When will a new release with this fix be available? |
By this month for sure !!! |
Doing
Fixe it for me. |
yeah, there are also ways to fix it with vim, but we need this cross-platform. :) |
for me, only seems to happen when installed globally with |
Adding docsify to a new project and can't get it to work at all 😢 |
@hipstersmoothie can you describe your issue ? is it related to the CLI ? also, if CLI is not working propoerly , then adding the docsify 's js and css files from cdn to your html page and create a |
This error occurs only when you use |
I do use yarn. I downgraded to 4.3.0 to get around the issue |
Any eta on this? Looking forward to use it. |
Cant say! |
@anikethsaha I've created a PR which will hopefully fix it. #102 |
if you use cd and open the code with vscode and delete the last line break if you use go to the global node_modules and open the code with vscode and delete the last line break |
Strangely enough, the vim method didn't work for me but For best results:
|
This has blocked several of my users from contributing to our docs. As a temporary workaround, I published yarn remove docsify-cli
yarn add --dev docsify-cli-hotfix Then just use the Maintainers, please publish an official patch release for this. |
it will be done soon. sorry for the delay. |
If you install it using yarn, the solution of @Rabbitzzc works with additional step
Updating using vscode
Then in vscode, make sure that the line-ending is set to |
annoying problem |
This solution worked for me! |
After the installation, I try to run docsify. However, there's an error saying
/usr/bin/env: ‘node\r’: No such file or directory
.Finally, I found the solution to the problem.
Just to use
dos2unix
to convert/use/local/lib/node_modules/docsify-cli/bin/docsify
to Unix format.Maybe it is the format(dos) of the file that cause the problem.
The text was updated successfully, but these errors were encountered: