Skip to content

Installing without babel results in an error #1

@hotdang-ca

Description

@hotdang-ca

Error:

jperih@Jamess-MacBook-Pro:ftp-zones$ npm install --save ftp-calc

> ftp-calc@0.0.7 postinstall /Users/jperih/Developer/ReactNative/ftp-zones/node_modules/ftp-calc
> npm run build


> ftp-calc@0.0.7 build /Users/jperih/Developer/ReactNative/ftp-zones/node_modules/ftp-calc
> babel src --out-dir build

sh: babel: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! ftp-calc@0.0.7 build: `babel src --out-dir build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the ftp-calc@0.0.7 build script.

Solution was to npm install babel-cli babel-core babel-preset-env, then install the module so that the post-install script could run. Need to find a way to do this without depending on the installing projects' dependencies including babel already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions