代码之家  ›  专栏  ›  技术社区  ›  Kamrul

为什么npm审核对react native unimodule失败

  •  0
  • Kamrul  · 技术社区  · 4 年前

    npm audit 在我的 反应本机 最初是一个世博会项目,并弹出到裸工作流的项目。当我跑的时候 ,我明白了

    npm ERR! code ELOCKVERIFY
    npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
    npm ERR!     Invalid: lock file's react-native-unimodules@0.9.1 does not satisfy react-native-unimodules@^0.7.0
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/kislam/.npm/_logs/2020-06-04T04_13_14_375Z-debug.log
    

    详细日志如下

    0 info it worked if it ends with ok
    1 verbose cli [
    1 verbose cli   '/Users/kislam/.nvm/versions/node/v12.14.0/bin/node',
    1 verbose cli   '/Users/kislam/.nvm/versions/node/v12.14.0/bin/npm',
    1 verbose cli   'audit'
    1 verbose cli ]
    2 info using npm@6.14.5
    3 info using node@v12.14.0
    4 verbose npm-session bcb02cea1f031e3c
    5 verbose stack Error: Errors were found in your package-lock.json, run  npm install  to fix them.
    5 verbose stack     Invalid: lock file's react-native-unimodules@0.9.1 does not satisfy react-native-unimodules@^0.7.0
    5 verbose stack     at /Users/kislam/.nvm/versions/node/v12.14.0/lib/node_modules/npm/lib/audit.js:184:19
    6 verbose cwd /Users/kislam/bunnings/repos/trades-mobile-app
    7 verbose Darwin 19.4.0
    8 verbose argv "/Users/kislam/.nvm/versions/node/v12.14.0/bin/node" "/Users/kislam/.nvm/versions/node/v12.14.0/bin/npm" "audit"
    9 verbose node v12.14.0
    10 verbose npm  v6.14.5
    11 error code ELOCKVERIFY
    12 error Errors were found in your package-lock.json, run  npm install  to fix them.
    12 error     Invalid: lock file's react-native-unimodules@0.9.1 does not satisfy react-native-unimodules@^0.7.0
    13 verbose exit [ 1, true ]
    

    package.json 具有以下关联版本

    "expo": "~37.0.3",
    "react-native": "~0.61.4",
    "react-native-unimodules": "~0.9.0",
    

    npm-audit 正在变得 react-native-unimodules@^0.7.0 从。

    0 回复  |  直到 4 年前