时间_已被注册 2016-03-02 12:14 采纳率: 0%
浏览 4299

ubuntu下安装 hexo失败

执行 sudo npm install hexo -g时 报错

贴上报错

 npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian


> dtrace-provider@0.6.0 install /usr/local/lib/node_modules/hexo/node_modules/hexo-log/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm WARN optional dep failed, continuing dtrace-provider@0.6.0
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties'
npm ERR! error rolling back  hexo@3.2.0 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties' }
npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the spawn-sync@1.0.15 postinstall script.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.19.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g"
npm ERR! cwd /home/sjd/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/hawk/lib/server.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.19.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g"
npm ERR! cwd /home/sjd/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/hawk/lib/server.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! EEXIST, mkdir '/usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol'
File exists: /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol
Move it away, and try again. 

npm ERR! System Linux 3.19.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g"
npm ERR! cwd /home/sjd/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol
npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol/iterator.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.19.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g"
npm ERR! cwd /home/sjd/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE
npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.19.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g"
npm ERR! cwd /home/sjd/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js
npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

  • 写回答

1条回答 默认 最新

  • threenewbee 2016-03-06 21:38
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)