【发布时间】:2015-10-15 21:24:58
【问题描述】:
我正在尝试使用 jspm 安装 react-bootstrap-datetimepicker,但出现此错误:
$ jspm install npm:react-bootstrap-datetimepicker
Password:
Looking up npm:react-bootstrap-datetimepicker
Updating registry cache...
Downloading npm:react-bootstrap-datetimepicker@0.0.21
Looking up npm:babel-runtime
Looking up npm:classnames
Looking up npm:moment
Looking up npm:react-bootstrap
Looking up npm:react
Downloading npm:classnames@2.1.5
Downloading npm:react-bootstrap@0.16.1
Downloading npm:moment@2.10.6
warn Error on download for npm:react-bootstrap-datetimepicker
Error: ENOENT, link '/Users/me/.jspm/packages/npm/react-bootstrap-datetimepicker@0.0.21/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/react-bootstrap-datetimepicker@0.0.21/。
但是,有
/Users/me/.jspm/packages/npm/react-bootstrap-datetimepicker@0.0.21/lib/DateTimeField.js.
是否需要修改 react-bootstrap-datetimepicker 代码才能与 jspm 一起使用?还有其他想法是什么原因造成的?
我记录了一个问题here。
【问题讨论】:
-
@Lilp,感谢您的提示。这个问题是很久以前的问题了,我没有看到它与这个问题有什么关系。你能说得更具体一点吗?