javascript - Aurelia Babel 未知选项 base.modules 错误

标签 javascript node.js gulp babeljs aurelia

我从Aurelia docs下载了骨架项目并尝试使用以下命令启动它:

gulp watch

但是,我收到以下错误:

[09:48:13] gulp-notify: [Error running Gulp] Error: [BABEL] <filelocation>: Unknown option: base.modules

有解决办法吗?

最佳答案

您是否遵循文档页面或 project's readme.md 中的完整项目设置说明? ?

Running The App

To run the app, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

    npm install

  3. Ensure that Gulp is installed globally. If you need to install it, use the following command:

    npm install -g gulp

  4. Ensure that jspm is installed globally. If you need to install it, use the following command:

    npm install -g jspm

  5. Install the client-side dependencies with jspm:

    jspm install -y

  6. To run the app, execute the following command:

    gulp watch

  7. Browse to http://localhost:9000 to see the app. You can make changes in the code found under src and the browser should auto-refresh itself as you save files.

关于javascript - Aurelia Babel 未知选项 base.modules 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34016209/

相关文章:

javascript - 从日期中添加/减去天数不会正确更改年/月

javascript - 使用jquery单击按钮时如何选择类或id

javascript - 你如何多次 .unwrap() 一个元素?

Node.js 流管道和垃圾收集

javascript - 如果满足条件,停止 Gulp 任务

javascript - 使用 Knockout-Kendo.js 库刷新 KendoDropDown

node.js - 如何在 Node.js 中检索客户端和服务器 IP 地址和端口号

node.js - 'npm install -g ' 到底是做什么的?

angularjs - 无法通过 npm 安装 gulp-jshint

javascript - 如何从 mocha.opts 文件中正确地要求模块