执行grunt build构建markdownjs出错

下了一份markdown-js的源码,按照文档所示的方法,执行npm install,出现如下错误:

npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! markdown@0.6.0-beta1 prepublish: `grunt build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the markdown@0.6.0-beta1 prepublish script 'grunt build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the markdown package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     grunt build

各软件版本:Ubuntu 16.04LTS Desktopgrunt@0.4.5grunt-cli@0.1.13
各文件和目录均为777权限

npm似乎提示执行prepublish阶段的命令行grunt build出错,然而直接在终端输入grunt或者grunt build都没有任何错误输出(事实上终端没有任何输出,直接返回),当然目标文件也一样没有输出。。。

所以请问应该如何操作才能让其正常工作?

阅读 3.5k
1 个回答

唉,我的问题从来都没有人来回答……

已经找到解决方案了:
sudo apt-get remove nodenode这个奇怪名字的包给卸载掉
sudo ln -s /usr/bin/nodejs /usr/bin/node创建一个名为node的到nodejs的链接

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题