2015-10-15 124 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

如果我的编辑被接受,我会将这个答案标记为答案。 :) –