2016-10-04 3 views
2

2014年中頃にMacBook Pro 13に新しくインストールしました BOWER、NPN、React Nativeをインストールした後(公式ガイドhttps://facebook.github.io/react-native/docs/getting-started.htmlの手順に従います)Reactネイティブnpm新しくインストールするEISDIR不正な操作

私は自分のプロジェクト(完全に他のMacで作業しています)に取り組んでいますが、npm -installでNPMから参照を取得しようとするとこのエラーが発生します。

npmインストール npm ERR!addLocal/users/diegobanovaz/Projectsをインストールできませんでした。 npm ERR!Darwin 16.0.0 npm ERR! argv "/usr/local/Cellar/node/6.7.0/bin/node" "/ usr/local/bin/npm" "install" npm ERR!ノードv6.7.0 npm ERR! npm v3.10.8 npm ERR!コードEISDIR npm ERR! errno -21 npm ERR!システムコールは、これは、それは私のpackage.jsonに問題があったことが判明し.logのコンテンツ

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/Cellar/node/6.7.0/bin/node', 
1 verbose cli '/usr/local/bin/npm', 
1 verbose cli 'install' ] 
2 info using [email protected] 
3 info using [email protected] 
4 silly loadCurrentTree Starting 
5 silly install loadCurrentTree 
6 silly install readLocalPackageData 
7 silly install normalizeTree 
8 silly loadCurrentTree Finishing 
9 silly loadIdealTree Starting 
10 silly install loadIdealTree 
11 silly cloneCurrentTree Starting 
12 silly install cloneCurrentTreeToIdealTree 
13 silly cloneCurrentTree Finishing 
14 silly loadShrinkwrap Starting 
15 silly install loadShrinkwrap 
16 silly loadShrinkwrap Finishing 
17 silly loadAllDepsIntoIdealTree Starting 
18 silly install loadAllDepsIntoIdealTree 
19 silly fetchOtherPackageData [email protected]:../ 
20 silly cache add args [ '[email protected]:../', null ] 
21 verbose cache add spec [email protected]:../ 
22 silly cache add parsed spec Result { 
22 silly cache add raw: '[email protected]:../', 
22 silly cache add scope: null, 
22 silly cache add escapedName: 'react-native-navigation', 
22 silly cache add name: 'react-native-navigation', 
22 silly cache add rawSpec: 'file:../', 
22 silly cache add spec: '/Users/diegobanovaz/Projects', 
22 silly cache add type: 'local' } 
23 error addLocal Could not install /Users/diegobanovaz/Projects 
24 silly fetchPackageMetaData Error: EISDIR: illegal operation on a  directory, read 
24 silly fetchPackageMetaData  at Error (native) 
24 silly fetchPackageMetaData error for [email protected]:../ { Error: EISDIR: illegal operation on a directory, read 
24 silly fetchPackageMetaData  at Error (native) errno: -21, code: 'EISDIR', syscall: 'read' } 
25 silly rollbackFailedOptional Starting 
26 silly rollbackFailedOptional Finishing 
27 silly runTopLevelLifecycles Finishing 
28 silly install printInstalled 
29 verbose stack Error: EISDIR: illegal operation on a directory, read 
29 verbose stack  at Error (native) 
30 verbose cwd /Users/diegobanovaz/Projects/situa 
31 error Darwin 16.0.0 
32 error argv "/usr/local/Cellar/node/6.7.0/bin/node" "/usr/local/bin/npm" "install" 
33 error node v6.7.0 
34 error npm v3.10.8 
35 error code EISDIR 
36 error errno -21 
37 error syscall read 
38 error eisdir EISDIR: illegal operation on a directory, read 
39 error eisdir This is most likely not a problem with npm itself 
39 error eisdir and is related to npm not being able to find a package.json in 
39 error eisdir a package you are trying to install. 
40 verbose exit [ -21, true ] 
+0

別のディレクトリにインストールしようとしましたか?これは、あなたがReact-Native CLIをインストールしようとしたときに起こります。 – EQuimper

+0

別のフォルダに移動しようとしました。これは、私の反応ネイティブプロジェクト用のパッケージを入手しようとしたときに発生します。 プロジェクトフォルダ –

+1

からnpm installコマンドを実行すると、/ usr/local内の.npmrcファイルを調べることができます – EQuimper

答えて

0

ある

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!  /Users/diegobanovaz/Projects/situa/npm-debug.log 

をお読みください。

http://package-json-validator.com/

をそして、それに問題があったところに私を示しています。私が使用し、それを見つけるために

関連する問題