2015-10-15 35 views
1

我試圖安裝react-bootstrap-datetimepicker與熱蒙和我得到這個錯誤:錯誤安裝的NPM庫JSPM

$ jspm install npm:react-bootstrap-datetimepicker 
Password: 
    Looking up npm:react-bootstrap-datetimepicker 
    Updating registry cache... 
    Downloading npm:[email protected] 
    Looking up npm:babel-runtime 
    Looking up npm:classnames 
    Looking up npm:moment 
    Looking up npm:react-bootstrap 
    Looking up npm:react 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 

warn Error on download for npm:react-bootstrap-datetimepicker 
    Error: ENOENT, link '/Users/me/.jspm/packages/npm/[email protected]/react-bootstrap-datetimepicker/lib/DateTimeField.js' 
     at Error (native) 

err Error downloading npm:react-bootstrap-datetimepicker. 

warn Installation changes not saved. 

我可以看到它的失敗是因爲沒有目錄react-bootstrap-datetimepicker

/Users/me/.jspm/packages/npm/[email protected]/

然而,

/Users/me/.jspm/packages/npm/[email protected]/lib/DateTimeField.js

是否需要修改react-bootstrap-datetimepicker代碼以便它可以與jspm一起使用?任何其他的想法是什麼造成了這個?

我登錄了一個問題here

+0

https://github.com/jspm/jspm-cli/issues/284 – Lilp

+0

@Lilp,謝謝你的提示。這個問題是在不久前發生的,我沒有看到它與這個問題的關係。你能提供一些更具體的細節嗎? –

回答

1

原來這是jspm/npm中的一個錯誤。這是the issue

1

看起來問題解決:

jspm install npm:react-bootstrap-datetimepicker 
    Looking up npm:react-bootstrap-datetimepicker 
    Updating registry cache... 
    Downloading npm:react-bootstrap-dat[email protected] 
    Looking up npm:babel-runtime 
    Looking up npm:classnames 
    Looking up npm:moment 
    Looking up npm:react-bootstrap 
    Looking up npm:react 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 
    Looking up npm:envify 
    Looking up npm:fbjs 
    Downloading npm:[email protected] 
ok Installed npm:[email protected]^2.8.2 (2.10.6) 
ok Installed npm:[email protected]^2.1.2 (2.2.0) 
    Looking up github:jspm/nodelibs-process 
    Downloading npm:[email protected] 
    Looking up npm:through 
    Looking up npm:jstransform 
    Downloading npm:[email protected] 
    Looking up npm:core-js 
    Looking up npm:loose-envify 
    Looking up npm:promise 
    Looking up npm:ua-parser-js 
    Looking up npm:whatwg-fetch 
ok Installed npm:[email protected]^3.0.0 (3.4.0) 
    Downloading npm:[email protected] 
    Looking up github:jspm/nodelibs-assert 
    Looking up github:systemjs/plugin-json 
    Downloading npm:[email protected] 
    Looking up npm:asap 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 
    Looking up npm:base62 
    Looking up npm:esprima-fb 
    Looking up npm:source-map 
    Looking up github:jspm/nodelibs-path 
    Looking up github:jspm/nodelibs-fs 
ok Installed npm:[email protected]~2.3.4 (2.3.8) 
ok Installed npm:[email protected]^0.9.0 (0.9.0) 
    Looking up npm:process 
    Downloading npm:[email protected] 
    Downloading npm:[email protected] 
    Looking up npm:amdefine 
    Downloading npm:[email protected] 
ok Installed npm:[email protected]^0.7.9 (0.7.9) 
ok Installed npm:[email protected]^7.0.3 (7.0.4) 
    Downloading npm:[email protected] 
    Looking up npm:assert 
    Looking up github:jspm/nodelibs-stream 
    Downloading npm:[email protected] 
    Looking up npm:js-tokens 
    Downloading npm:[email protected] 
    Looking up npm:path-browserify 
ok Installed npm:[email protected]~2.0.3 (2.0.3) 
    Looking up npm:util 
ok Installed npm:[email protected]^10.0.1 (10.1.0) 
ok Installed npm:[email protected] (0.1.1) 
    Looking up github:jspm/nodelibs-domain 
    Looking up npm:inherits 
ok Installed npm:amdefine (1.0.0) 
ok Installed npm:[email protected]^0.3.1 (0.3.2) 
ok Installed npm:[email protected]^1.0.0 (1.1.0) 
    Downloading github:jspm/[email protected] 
    Downloading npm:[email protected] 
    Looking up npm:stream-browserify 
    Looking up github:jspm/nodelibs-module 
ok Installed github:jspm/[email protected]^0.1.0 (0.1.0) 
    Looking up npm:readable-stream 
    Looking up github:jspm/nodelibs-util 
    Looking up npm:domain-browser 
    Downloading github:jspm/[email protected] 
ok Installed npm:react (0.14.1) 
ok Installed npm:[email protected]^1.0.0 (1.0.0) 
ok Installed npm:[email protected] (13001.1001.0-dev-harmony-fb) 
    Looking up github:jspm/nodelibs-events 
    Downloading npm:[email protected] 
ok Installed npm:[email protected]^1.0.1 (1.0.2) 
    Looking up npm:core-util-is 
    Looking up npm:isarray 
    Looking up npm:string_decoder 
ok Installed npm:[email protected] (0.1.31) 
ok Installed npm:[email protected]^1.0.27-1 (1.1.13) 
ok Installed npm:[email protected]^0.16.1 (0.16.1) 
ok Installed npm:[email protected] (0.0.1) 
ok Installed npm:[email protected]^1.1.3 (1.1.4) 
ok Installed npm:[email protected]~1.0.0 (1.0.1) 
ok Installed npm:[email protected]~0.10.0 (0.10.31) 
    Looking up github:jspm/nodelibs-buffer 
ok Installed github:jspm/[email protected]^0.1.0 (0.1.0) 
    Looking up npm:events 
ok Installed github:jspm/[email protected]^0.1.1 (0.1.1) 
ok Installed npm:[email protected] (1.0.2) 
ok Installed github:jspm/[email protected]^0.1.0 (0.1.0) 
    Looking up npm:buffer 
ok Installed github:jspm/[email protected]^0.1.0 (0.1.0) 
    Looking up npm:base64-js 
    Looking up npm:ieee754 
    Looking up npm:is-array 
ok Installed npm:[email protected]^3.0.1 (3.5.1) 
ok Installed npm:[email protected]^1.1.4 (1.1.6) 
ok Installed npm:[email protected]^1.0.1 (1.0.1) 
ok Installed npm:[email protected] (0.0.8) 
ok Installed react-bootstrap-datetimepicker as npm:[email protected]^0.0.21 (0.0.21) 
ok Install tree has no forks. 

ok Install complete. 

在新初始化的項目,[email protected]運行。

+0

謝謝。顯然這是jspm-npm中的一個錯誤。 –

+0

如果我的編輯被接受,我會將這個答案標記爲答案。 :) –