Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'babel' is not recognized as an internal or external command #2

Open
jfbaraky opened this issue Nov 6, 2017 · 1 comment
Open

'babel' is not recognized as an internal or external command #2

jfbaraky opened this issue Nov 6, 2017 · 1 comment

Comments

@jfbaraky
Copy link
Member

jfbaraky commented Nov 6, 2017

package.json is using a global babel script:

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "rm -rf dist/ && babel src/ -d dist",
    "postinstall": "npm run build"
  },

best way:

  • Install babel locally and add it to the peerDependencies.
  • Change the script to run locally: ./node_modules/.bin/babel
@kari538
Copy link

kari538 commented Apr 5, 2021

Hi!

Could you please be a bit more elaborate about how to "Install babel locally", how to "add it to the peerDependencies" as well as what exactly in the script it is that you change to the quoted code line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants