【发布时间】:2016-04-12 01:32:16
【问题描述】:
我正在尝试在 Android 上运行 React Native 示例,位于:https://github.com/brentvatne/react-native-scrollable-tab-view
按照步骤:
- cd ...\react-native-scrollable-tab-view-master\examples\FacebookTabsExample
- npm install ---失败
这一步的错误是:
C:\Users\KJA\ReactNativeProjects\FacebookTabsExample>npm install
npm ERR! addLocal Could not install C:\Users\KJA
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.7.0
npm ERR! npm v3.6.0
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\KJA\ReactNativeProjects\FacebookTabsExample\npm-debug.log
我找不到为什么会这样?如何缓解这种情况?
【问题讨论】:
标签: android node.js react-native