Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Gergely Szabo
6,082 PointsNPM run build problem
Dear Treehouse,
Some problem happened to me when I tried to run the build script.
I got this: npm ERR! Failed at the treehouse-babel-template@0.0.1 build script 'babel src -d build'.
I have this in the package.json: "devDependencies": { "babel-cli": "^6.24.1", "babel-preset-es2015": "^6.24.1" }
Any idea what can cause this problem?
Thanks Gergo
1 Answer

Gergely Szabo
6,082 PointsI had to install it globaly with:
npm install --global babel-cli
But somehow the package.json is still not working. If I type manually babel src -d build, It creates the build but with npm run It doesn't. Yet :)