Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

现在babel官网上主张在项目本地安装babel-cli,而不是全局安装,
所以我在项目本地运行了npm install --save-dev babel-cli
但是babel.cmd却保存在了项目本地的./node_modules/.bin/这个文件夹,在项目的根目录中无法通过命令行调用到。怎么做才能项目根目录中代用到babel.cmd?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
638 views
Welcome To Ask or Share your Answers For Others

1 Answer

写全路径,或写到package.json script里。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...