如何开始yeoman和three.js?

我安装three.js与bower install threejs

然后,我希望在我的页面有three.js,所以我的app.js文件开始于:

 define(["jquery", "three"], function() { "use strict"; 

但是,当我的页面加载Chrome控制台时显示:

 Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/scripts/three.js Uncaught Error: Script error 

那么,不应该像在jQuery中那样查看组件吗?

基本上我怎么能开始yeoman和安装three.js?

解决scheme如下。

app.js文件需要引用上面的“three”,它指的是具有以下内容的文件main.js。

 require.config({ paths: { jquery: '../components/jquery/jquery', three: '../components/threejs/build/three' }, shim: { bootstrap: { deps: ['jquery'], exports: 'jquery' } } }); 

这里的关键是threejs three.js文件所在的三个点。