Skip to content

/usr/bin/env: 'node\r': No such file or directory #6

Open

Description

@dadamschi

I am trying to git-deploy an express app to Azure. When I run the following command locally or in Gitlab, I get the following error /usr/bin/env: 'node\r': No such file or directory.

Has anyone seen this issue?

deploy.js

'use strict';

module.exports = function(deployTarget) {
  if (deployTarget === 'production') {
    console.log('deploying...');

    return {
      'git': {
        repo: process.env.REPO,
        branch: 'master',
        worktreePath: '/tmp/ef4-deploy-lightning-app',
        commitMessage: 'Deployed %@'
       }
    };
  };
  
};

The command I used to deploy is deployjs deploy -e production --verbose

I am trying to run this in a MacOS/Linux environment.

@duizendnegen any thoughts on this would be greatly appreciated.

Activity

  1. dadamschi commented on Jul 31, 2020

    @dadamschi
    Author

    I was able to over this issue by running dos2unix on ~/.config/yarn/global/node_modules/@deployjs/cli/bin/deploy.js.

    Now I am getting the error [ERROR] -- Cannot read property 'write' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions