1

我正在尝试npm audit在我的react-native项目上运行,该项目最初是一个世博会项目并被弹出到裸工作流中。当我跑步时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

4

0 回答 0