简体   繁体   English

我该如何解决“babel-node”未被识别为内部或外部命令、可运行程序或批处理文件的问题?

[英]how can i fix this issue 'babel-node' is not recognized as an internal or external command, operable program or batch file.?

I'm working on node.js project.我正在从事 node.js 项目。 I have created this project by use Babel which was running fine in previous using node system.我使用 Babel 创建了这个项目,它在以前使用节点系统时运行良好。 i have updated node.js version in my system, after that I'm getting error of Bebel-node.我已经在我的系统中更新了 node.js 版本,之后我收到了 Bebel-node 的错误。 Any one can help me how can i solve this issue??b I have installed all bebal.js module.任何人都可以帮助我如何解决这个问题??b 我已经安装了所有 bebal.js 模块。

I'm using code in bebel.rc
{
    "plugins": [
        "@babel/plugin-transform-runtime"
    ],
    "presets": [
        "@babel/env"
    ],
    "ignore": [
        "node_modules",
        "src/public"
    ]
}

this is my updated  package.json ....
{
  "name": "backend-buluckart-hashing.company",
  "version": "0.1.0",
  "description": "groffers-nepal",
  "main": "index.js",
  "scripts": {
    "start": "nodemon src/index.js --exec babel-node --presets @babel/env",
    "build": "babel src -d dist --source-maps inline --copy-files",
    "serve": "node dist/index.js",
    "sequelize": "sequelize"
  },
  "keywords": [],
  "author": "Ashutosh singh",
  "license": "ISC",
  "homepage": "",
  "nodemonConfig": {
    "ignore": [
      "src/public/*"
    ]
  },
  "devDependencies": {
    "@babel/cli": "^7.17.6",
    "@babel/core": "^7.17.5",
    "@babel/node": "^7.16.8",
    "@babel/plugin-transform-runtime": "^7.17.0",
    "@babel/preset-env": "^7.16.11",
    "nodemon": "^2.0.15"
  },
  "dependencies": {
    "@babel/runtime": "^7.17.2",
    "aws-sdk": "^2.700.0",
    "babel-upgrade": "^1.0.1",
    "bcrypt-nodejs": "0.0.3",
    "body-parser": "^1.18.3",
    "cookie-parser": "^1.4.3",
    "cors": "^2.8.5",
    "dateformat": "^3.0.3",
    "dotenv": "^8.0.0",
    "event-stream": "^4.0.1",
    "express": "^4.16.3",
    "express-handlebars": "^6.0.2",
    "express-sanitizer": "^1.0.5",
    "express-session": "^1.15.6",
    "helmet": "^3.15.1",
    "joi": "^14.3.0",
    "joi-date-extensions": "^1.2.0",
    "jsonwebtoken": "^8.3.0",
    "kue": "^0.11.1",
    "mailparser": "^3.4.0",
    "moment": "^2.24.0",
    "morgan": "^1.9.0",
    "multer": "^1.4.1",
    "multer-s3": "^2.9.0",
    "mysql": "^2.16.0",
    "mysql2": "^1.6.4",
    "passport": "^0.4.0",
    "passport-jwt": "^4.0.0",
    "passport-local": "^1.0.0",
    "qs": "^6.10.3",
    "radis": "^2.0.0",
    "razorpay": "^2.0.6",
    "react-bootstrap": "^2.1.2",
    "read-excel-file": "^5.2.26",
    "request": "^2.88.0",
    "rotating-file-stream": "^1.4.1",
    "sequelize": "^5.21.13",
    "sequelize-cli": "^6.4.1",
    "speakeasy": "^2.0.0",
    "stack-trace": "0.0.10",
    "twilio": "^3.72.0"
  }
}
 "start": "nodemon --exec npx babel-node src/index.js",

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Nodemon, babel-node 不是内部或外部命令,也不是可运行的程序 或批处理文件 - Nodemon, babel-node is not recognized as an internal or external command, operable program or batch file 我不能“'节点。' 不是内部或外部命令,也不是可运行的程序或批处理文件。” - i get cannot " 'node.' is not recognized as an internal or external command, operable program or batch file." 无法将“节点”识别为内部或外部命令,可操作程序或批处理文件。 -Browsershot - 'node' is not recognized as an internal or external command, operable program or batch file. - Browsershot 'node' 不是内部或外部命令,也不是可运行的程序或批处理文件。 在 git bash 中 - 'node' is not recognized as an internal or external command, operable program or batch file. in git bash 修复:“nodemon”不被识别为内部或外部命令、可运行程序或批处理文件 - fix: 'nodemon' is not recognized as an internal or external command, operable program or batch file “节点”不是内部或外部命令、可运行程序或批处理文件 - '“node”' is not recognized as an internal or external command, operable program or batch file 无法将“节点”识别为内部或外部命令,可操作程序或批处理文件 - 'node' is not recognized as an internal or external command, operable program or batch file 节点未被识别为内部或外部命令可操作程序或批处理文件 - node is not recognized as an internal or external command operable program or batch file 'expo-cli' 不是内部或外部命令、可运行程序或批处理文件。 此命令需要 Expo CLI - 'expo-cli' is not recognized as an internal or external command, operable program or batch file. This command requires Expo CLI 为什么我仍然有以下错误:“节点”不是内部或外部命令、可运行程序或批处理文件? - Why I still having the following error: '"node"' is not recognized as an internal or external command, operable program or batch file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM