Getting babel to work on my mac


#1

hey guys so I got through the end of the transpilation lesson and I gave setting up babel on my mac a shot and well I keep getting errors here’s my code

what is shown in the command line

JS doesn’t exist
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! testing-babel@1.0.0 build: babel JS -d lib
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the testing-babel@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/harrisonjones/.npm/_logs/2018-10-17T02_07_26_075Z-debug.log
Harrisons-iMac:JS harrisonjones$

and this is what I have in my JSON file

{
“name”: “testing-babel”,
“version”: “1.0.0”,
“description”: “just getting use to babel”,
“main”: “test.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”,
“build”: “babel JS -d lib”
},
“author”: “Dwayne”,
“license”: “ISC”,
“devDependencies”: {
“babel-cli”: “^6.26.0”,
“babel-preset-env”: “^1.7.0”
}
}

https://www.codecademy.com/courses/introduction-to-javascript/lessons/browser-compatibility-and-transpilation/exercises/review?action=resume_content_item