Reputation: 827
I am using babel to build a part of my library and I'm running into issues when i run babel commands through npm.
I have an npm script called build that calls:
{
"prebuild": "rm -rf && mkdir dist",
"build": "babel src/index.js -o dist/index.js"
}
I have run the actual babel command itself in my command line and it works.
However when I do npm run build from my command line it says
The CLI has been moved into the package 'babel-cli'
npm also says that it is that specific line that is failing.
I have already tried the following:
Any other ideas? as to why npm fails at running this command?
Upvotes: 0
Views: 272
Reputation:
Install babel@5
globally (npm install babel@5 --global
) as well as locally: npm install babel@5 --save-dev
Upvotes: 1