添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Error Cannot find module 'strip-ansi' #2744

@ahmadina

Description

after update sailsjs 0.10 to 0.11, im run command sails lift show error :

how to fix it?

error: ** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
Aborted due to warnings.
Loading "jst.js" tasks...ERROR
>> Error: Cannot find module 'strip-ansi'
Warning: Task "jst:dev" not found.
------------------------------------------------------------------------
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/Ahmadina/Sites/HamidReza/i/.tmp` ?
error:
error:      If you think this might be the case, try running:
error:      sudo chown -R 501 /Users/Ahmadina/Sites/HamidReza/i/.tmp