登录后通过内部存储库安装软件包

时间:2018-10-17 20:32:38

标签: javascript node.js reactjs npm

我正在尝试通过内部存储库安装create-react-app软件包。我已登录,但仍然无法安装。你能告诉我如何解决吗?在下面提供我的命令和错误。

npm install create-react-app@2.0.4 --save   

错误:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'create-react-app',
1 verbose cli   '--registry',
1 verbose cli   'http://artifactory.sports.com/artifactory/api/npm/apm-libs/' ]
2 info using npm@5.5.1
3 info using node@v8.9.1
4 verbose npm-session 600a9ea1ecb7dee5
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 404 http://artifactory.sports.com/artifactory/api/npm/apm-libs/create-react-app 79ms
8 silly fetchPackageMetaData error for create-react-app@latest 404 Not Found: create-react-app@latest
9 verbose stack Error: 404 Not Found: create-react-app@latest
9 verbose stack     at fetch.then.res (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
9 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
9 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
9 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
9 verbose stack     at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
9 verbose stack     at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
9 verbose stack     at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
9 verbose stack     at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
9 verbose stack     at Immediate.Async.drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
9 verbose stack     at runCallback (timers.js:789:20)
9 verbose stack     at tryOnImmediate (timers.js:751:5)
9 verbose stack     at processImmediate [as _immediateCallback] (timers.js:722:5)
10 verbose cwd C:\Users\i8cx\Downloads\sample-master-85717752ab517ac61ce3d7c736a8745a3cc1439a\sample-master-85717752ab517ac61ce3d7c736a8745a3cc1439a
11 verbose Windows_NT 10.0.16299
12 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "create-react-app" "--registry" "http://artifactory.sports.com/artifactory/api/npm/apm-libs/"
13 verbose node v8.9.1
14 verbose npm  v5.5.1
15 error code E404
16 error 404 Not Found: create-react-app@latest
17 verbose exit [ 1, true ]

0 个答案:

没有答案