2
我尝试与咖啡脚本和ES6 首先创建sails.js项目,我用帆新的“应用程序名称” 和 NPM安装咖啡脚本 - 保存 NPM安装通天--save我怎样才能创造一个sails.js项目与咖啡脚本和ES6
和修改app.js
options = {
loose : "all",
stage : 1,
ignore : null,
only : null,
extensions: null
};
require("sails-hook-babel/node_modules/babel/register")(options);
但它的东西错
我看到别人可以通过自动创建它(它可以创造app.coffee升ocal.coffee等等不需要修改) 如何做到这一点?
-----------------------------------------------
error: ** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
Warning: Task "watch" not found.
Aborted due to warnings.
------------------------------------------------------------------------
error: Looks like a Grunt error occurred--
error: Please fix it, then **restart Sails** to continue running tasks (e.g. watching for changes in assets)
error: Or if you're stuck, check out the troubleshooting tips below.
error: Troubleshooting tips:
error:
error: *-> Are "grunt" and related grunt task modules installed locally? Run `npm install` if you're not sure.
error:
error: *-> You might have a malformed LESS, SASS, CoffeeScript file, etc.
error:
error: *-> Or maybe you don't have permissions to access the `.tmp` directory?
error: e.g., `/Users/yangjunzhang/Documents/workspace/burstWork/.tmp` ?
error:
error: If you think this might be the case, try running:
error: sudo chown -R 501 /Users/yangjunzhang/Documents/workspace/burstWork/.tmp