“node_modules”未被识别为内部或外部命令

anauzrmj  于 2023-04-05  发布在  Node.js
关注(0)|答案(1)|浏览(164)

`PS E:\Web\Javascript course\Babel Practice〉npm run babel

> weather_app@1.0.0 babel
> node_modules/.bin/babel src/index.js -o dist/assets/bundle.js

'node_modules' is not recognized as an internal or external command,

// I'm using this script
"scripts": {
    "babel": "node_modules/.bin/babel src/index.js -o dist/assets/bundle.js"
}

// Even if I add './' in start, it does not work
'.' is not recognized as an internal or external command,`
exdqitrt

exdqitrt1#

您必须在以下时间之前执行此命令:run npm install它将安装必要的依赖项来运行您要运行的命令

相关问题