create-react-app:模板是用旧版本的 Handlebars 预编译的

create-react-app: Template was precompiled with an older version of Handlebars

我刚刚按照 https://github.com/facebookincubator/create-react-app 上的说明安装了 create-react-app 包。

之后,我按照说明创建了一个 "myapp" 应用程序:

$ create-react-app --version
1.0.4

$ create-react-app myapp

Creating a new React app in /home/...mydir.../myapp.

Installing packages. This might take a couple minutes.
Installing react-scripts...

在我得到的已安装软件包列表之后:

Success! Created myapp at /home/...mydir.../myapp
Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd myapp
  npm start

Happy hacking!

好的,但是当我是 运行 服务器时,我在浏览器控制台上收到以下消息:

Template was precompiled with an older version of Handlebars than the current
runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade
your runtime to an older version (>= 2.0.0-beta.1).

我已经验证了把手版本:

$ npm ls|grep handlebars
  │   │   └─┬ handlebars@4.0.6

我也曾尝试在 "devDependencies" 和 "dependencies" 下的 package.json 上设置车把版本,但这没有用。

关于如何解决这个问题有什么想法吗?

这是 Code Climate Chrome 扩展中的错误。
如果卸载它,错误就会消失。