【问题标题】:Getting error while installing react-stripe-js in my react Project在我的反应项目中安装 react-stripe-js 时出错
【发布时间】:2020-12-29 16:47:14
【问题描述】:

在尝试安装 npm install @stripe/react-stripe-js 时遇到此错误。 有人可以帮忙吗?

C:\Users\Ayush\Desktop\ReactBootcamp\amazon-clone>npm install @stripe/react-stripe-js
npm ERR! Object for dependency "@babel/generator" is empty.
npm ERR! Something went wrong. Regenerate the package-lock.json with "npm install".
npm ERR! If using a shrinkwrap, regenerate with "npm shrinkwrap".

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ayush\AppData\Roaming\npm-cache\_logs\2020-09-11T07_04_49_530Z-debug.log

enter image description here

【问题讨论】:

    标签: node.js reactjs npm stripe-payments


    【解决方案1】:

    尝试以下步骤

    Delete node_modules folder
    Delete package-lock.json file
    run npm cache clean --force
    npm install
    

    【讨论】:

      猜你喜欢
      • 2020-10-19
      • 2021-07-11
      • 1970-01-01
      • 2022-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多