首页 > 解决方案 > React native:NPM 无法安装 react-navigation(不在 npm 注册表中)

问题描述

我正在尝试安装react-navigation,但无法弄清楚为什么 npm/yarn 无法检索依赖项(npm http fetch GET 404 http://registry.npmjs.org/@react-navigation%2fnative 1193ms)

这是完整的日志。有什么想法吗?

提前致谢

npm install #finishes OK

npm install --save-dev react-navigation

npm info using npm@6.8.0
npm info using node@v11.3.0
npm verb npm-session 7dacdbc55ea7d70c
npm http fetch GET 200 http://registry.npmjs.org/react-navigation 24ms (from cache)
npm timing stage:loadCurrentTree Completed in 1708ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 11ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 880ms
npm http fetch GET 200 http://registry.npmjs.org/react-navigation-drawer 29ms (from cache)
npm http fetch GET 200 http://registry.npmjs.org/react-navigation-tabs 30ms (from cache)
npm http fetch GET 200 http://registry.npmjs.org/@react-navigation%2fcore 33ms (from cache)
npm http fetch GET 200 http://registry.npmjs.org/react-navigation-stack 36ms (from cache)
npm http fetch GET 404 http://registry.npmjs.org/@react-navigation%2fnative 1193ms
npm http fetch GET 404 http://registry.npmjs.org/@react-navigation%2fnative 1135ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 4939ms
npm verb stack Error: 404 Not Found - GET http://registry.npmjs.org/@react-navigation%2fnative - Not Found
npm verb stack     at res.buffer.catch.then.body (/check-response.js:104:15)
npm verb stack     at process.internalTickCallback (internal/process/next_tick.js:77:7)
npm verb statusCode 404

标签: reactjsreact-nativenpmreact-navigation

解决方案


推荐阅读