【发布时间】:2016-04-22 22:10:48
【问题描述】:
我已经安装了 NodeJS,在顶部添加了 Express,现在我无法让 FabricJS 工作。
我是否必须按照“构建”下 https://github.com/kangax/fabric.js/ 中的步骤才能使 FabricJS 工作?
我尝试在我的应用程序的根目录中运行 $ node build.js,这给了我:
$ node build.js
module.js:327
throw err;
^
Error: Cannot find module 'D:\Drive\Personal\Sandbox\express-angular-app\build.j
s'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
还有在给我的结构模块文件夹中:
$ node build.js
D:\Drive\Personal\Sandbox\express-angular-app\node_modules\fabric\build.js:93
if (err) throw err;
^
Error: ENOENT: no such file or directory, open 'D:\Drive\Personal\Sandbox\expres
s-angular-app\node_modules\fabric\HEADER.js'
at Error (native)
我使用 Jade,我的 index.jade 和 fabric.js 中有以下内容:
【问题讨论】:
标签: fabricjs