Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

On DigitalOcean ubuntu .. #40

Open

Description

@pociej

... after npm install --save-dev babel-cli babel-preset-env
babel is still not available in CL. Instead i see below output.

root@socket-server-ZZ:~/projects/my_app# babel src -d dist/
The program 'babel' can be found in the following packages:
 * babel-1.4.0
 * openbabel
Try: apt install <selected package>

Activity

  1. zerojuan commented on Dec 27, 2018

    @zerojuan

    That's because babel-cli is installed locally (in your project directory's node_modules).

    You can either:

    • install it globally so you can run it in the shell
    npm install -g babel-cli
    
    • or call babel through an npm script (npm knows how to look inside your node_modules).
     "scripts": {
        "build": "babel src -d dist"
      }
    
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