Ciyeako 2021-07-07 11:29 采纳率: 0%
浏览 152

npm install报错destination path already exists

运行npm install 的时候,
报错destination path '~/.npm/_cacache/tmp/git-clone-c6c09c58/.git'
already exists and is not an empty directory.
使用ls查看,又提示文件目录不存在,求大佬帮忙,怎么解决这个问题呐
ls: ~/.npm/_cacache/tmp/git-clone-c6c09c58/.git: No such file or directory

img

附package.json

  "name": "sechain-contract-deployer",
  "version": "2.0.5",
  "description": "Secure Smart Contract library for Solidity",
  "scripts": {},
  "dependencies": {
    "@truffle/contract": "^4.0.33",
    "dotenv": "^8.1.0",
    "lite-server": "^2.5.4",
    "truffle-hdwallet-provider": "^1.0.17",
    "ali-oss": "^5.2.0",
    "async": "^2.6.1",
    "babel-cli": "^6.26.0",
    "babel-core": "^6.9.1",
    "babel-loader": "^6.0.0",
    "babel-plugin-module-resolver": "^2.2.0",
    "babel-plugin-transform-async-to-generator": "^6.16.0",
    "babel-polyfill": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-latest": "^6.24.1",
    "babel-register": "^6.26.0",
    "babel-runtime": "^6.6.1",
    "co": "^4.6.0",
    "ethereumjs-util": "^5.2.0",
    "git-rev": "^0.2.1",
    "log4js": "^2.7.0",
    "mocha-logger": "^1.0.6",
    "moment": "^2.22.2",
    "uuid": "^3.2.1",
    "web3": "1.0.0-beta.34",
    "web3-utils": "1.0.0-beta.34",
    "web3-eth-abi": "1.0.0-beta.34"
  },
  "devDependencies": {}
}
  • 写回答

1条回答 默认 最新

  • will_zhanShmily 2021-07-07 11:54
    关注

    先把node_modules文件夹删了,然后再npm install 试试

    评论

报告相同问题?

悬赏问题

  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)