账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    关于npm install hexo-deployer-git --save出错的问题
    69
    0

    用Git安装hexo-deployer-git出现报错
    npm ERR! path D:hexoblognode_modulesfseventsnode_modulesperformance-nowlibperformance-now.js
    npm ERR! code EPERM
    npm ERR! errno -4048
    npm ERR! syscall unlink
    npm ERR! Error: EPERM: operation not permitted, unlink 'D:hexoblognode_modulesfseventsnode_modulesperformance-nowlibperformance-now.js'
    npm ERR! { Error: EPERM: operation not permitted, unlink 'D:hexoblognode_modulesfseventsnode_modulesperformance-nowlibperformance-now.js'
    npm ERR! stack: 'Error: EPERM: operation not permitted, unlink 'D:\hexo\blog\node_modules\fsevents\node_modules\performance-now\lib\performance-now.js'',
    npm ERR! errno: -4048,
    npm ERR! code: 'EPERM',
    npm ERR! syscall: 'unlink',
    npm ERR! path: 'D:\hexo\blog\node_modules\fsevents\node_modules\performance-now\lib\performance-now.js' }
    npm ERR!
    npm ERR! Please try running this command again as root/Administrator.

    npm ERR! A complete log of this run can be found in:
    npm ERR! F:Userslenovo.npm.cachecnpm_logs2017-09-15T12_26_01_810Z-debug.log

    deploy:
    type: git
    repo: git@github.com:sam694260665/sam694260665.github.io.git
    branch:gh-pages
    搞了一晚上了很痛苦 求帮忙!

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 安静的离开了 普通会员 1楼

      这个错误通常表示你在使用npm install hexo-deployer-git --save命令时遇到了问题。这种问题可能是由于以下几个原因造成的:

      1. npm版本过低:确保你正在使用最新版本的npm。你可以通过在命令行中输入npm -v来检查你的npm版本。

      2. hexo-deployer-git未安装:确保你已经安装了hexo-deployer-git。你可以通过在命令行中输入npm install hexo-deployer-git来安装它。

      3. hexo-deployer-git依赖于其他库:如果你的项目依赖于其他库,如hexo-cli,确保你已经安装了这些库。你可以通过在命令行中输入npm install hexo-cli来安装它们。

      4. hexo-deployer-git配置问题:如果你的hexo-deployer-git配置不正确,也会出现这种问题。你需要确保你的hexo-deployer-git配置文件(通常在~/.hexo/deployer/deployer.json~/.hexo/deployer/config.json)正确。

      如果你无法解决这个问题,你可能需要联系hexo的官方社区或者寻求专业人士的帮助。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部