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

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

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    cnpm install在安装lodash.restparam时一直报错
    34
    0

    将项目下载之后在本地执行cnpm install, 在安装lodash时git clone报错文件夹已存在并且不为空

    [125/128] Installing lodash.restparam@^3.0.0fatal: destination path 'D:\Documents-and-setings\Administrator\Desktop\Study\topcoder\autocomplete\connect-app\node_modules\.tmp\b6951e46-0085-4ab9-8344-b1c7cd1aaab7' already exists and is not an empty directory.
    [125/128] Installing lodash.restparam@^3.0.0rmdir git clone dir: D:\Documents-and-setings\Administrator\Desktop\Study\topcoder\autocomplete\connect-app\node_modules\.tmp\b6951e46-0085-4ab9-8344-b1c7cd1aaab7 error: Error: EPERM: operation not permitted, unlink 'D:\Documents-and-setings\Administrator\Desktop\Study\topcoder\autocomplete\connect-app\node_modules\.tmp\b6951e46-0085-4ab9-8344-b1c7cd1aaab7\app\styles\fonts\glyphicons-halflings-regular.svg', ignore it
    Install fail! Error: [tc-accounts@git+https://github.com/appirio-tech/accounts-app.git#0.0.11] Run "C:\WINDOWS\system32\cmd.exe /d /s /c git clone https://github.com/appirio-tech/accounts-app.git D:\Documents-and-setings\Administrator\Desktop\Study\topcoder\autocomplete\connect-app\node_modules\.tmp\b6951e46-0085-4ab9-8344-b1c7cd1aaab7" error, exit code 128
    Error: [tc-accounts@git+https://github.com/appirio-tech/accounts-app.git#0.0.11] Run "C:\WINDOWS\system32\cmd.exe /d /s /c git clone https://github.com/appirio-tech/accounts-app.git D:\Documents-and-setings\Administrator\Desktop\Study\topcoder\autocomplete\connect-app\node_modules\.tmp\b6951e46-0085-4ab9-8344-b1c7cd1aaab7" error, exit code 128
    at module.exports (C:\Users\1\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\download\git.js:51:11)
    at module.exports.throw (<anonymous>)
    at onRejected (C:\Users\1\AppData\Roaming\npm\node_modules\cnpm\node_modules\co\index.js:81:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    npminstall version: 3.20.2
    npminstall args: C:\Program Files\nodejs\node.exe C:\Users\1\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\1\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org
    
    
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 荒凉い 普通会员 1楼

      这个问题可能是由于Cnpm版本过低或者你没有正确安装lodash等依赖库。请尝试以下步骤解决:

      1. 更新Cnpm到最新版本: npm update -g cnpm

      2. 使用npm install lodash代替cnpm install lodash.restparam。这样可以确保使用最新版本的lodash库。

      如果以上方法仍然无法解决问题,你可能需要检查你的Cnpm是否已经正确安装。你可以使用以下命令来检查Cnpm是否已经安装:

      npm -v

      如果Cnpm已经安装并且版本正确,你应该能看到Cnpm的版本号。如果没有,你需要先安装Cnpm。

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