Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo程序无法npm install #33

Closed
evanywang opened this issue Jul 31, 2017 · 7 comments
Closed

demo程序无法npm install #33

evanywang opened this issue Jul 31, 2017 · 7 comments

Comments

@evanywang
Copy link

知道情况吗?
make: *** [install] Error 1
npm WARN [email protected] requires a peer of react@~15.4.0-rc.4 but none was installed.
npm WARN [email protected] requires a peer of react-native@>=0.40.0 but none was installed.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] install: make install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@evanywang evanywang changed the title demo程序无法nom install demo程序无法npm install Jul 31, 2017
@panhs
Copy link

panhs commented Aug 3, 2017

ME TOO

npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/xx/.nvm/versions/node/v8.0.0/bin/node" "/Users/xx/.nvm/versions/node/v8.0.0/bin/npm" "install"
npm ERR! node v8.0.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: make install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script 'make install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the linter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs linter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls linter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/xx/Documents/Github_projects/webim-react-native/npm-debug.log
panheshundeMacBook-Pro:webim-react-native xx$ react-native run-android

@panhs
Copy link

panhs commented Aug 3, 2017

忽略以后继续部署的话 会提示strict mode does not allow function declarations in a lexical,然后修改.\node_modules\react-native\Libraries\Core\InitializeCore.js 112行,改完还是不行

@wytheme
Copy link
Contributor

wytheme commented Aug 7, 2017

尝试一下 : facebook/react-native#11389 (comment)

@panhs
Copy link

panhs commented Aug 9, 2017

试了没用

@wytheme
Copy link
Contributor

wytheme commented Aug 10, 2017

@panhs ,
提供一下你做了哪些尝试,每次尝试后的结果是什么样的
尝试重新部署项目并重现以上问题,并提供重现步骤

@V1sk
Copy link

V1sk commented Oct 31, 2017

遇到了相同的问题:
`chenjianweideMacBook-Pro:webim-react-native chenjianwei$ npm install

[email protected] install /Users/chenjianwei/RN_Demo/webim-react-native/node_modules/linter
make install

cd ./deps/closure-linter && python ./setup.py install
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-3363.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

make: *** [install] Error 1
npm WARN [email protected] requires a peer of react@~15.4.0-rc.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@>=0.40.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] install: make install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chenjianwei/.npm/_logs/2017-10-31T10_11_18_543Z-debug.log
chenjianweideMacBook-Pro:webim-react-native chenjianwei$ `

@misakichan
Copy link

同报错。rn版本太老了。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants