Dont call npm before node is available#5156
Dont call npm before node is available#5156hkjorgensen wants to merge 1 commit intofacebook:masterfrom
Conversation
|
Good catch! @facebook-github-bot shipit |
|
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/932279090153788/int_phab to review. |
Summary: This fixes an error introduced in `0.18.0-rc` `node` and `npm` isn't available if the developer is using `nvm` or `nodeenv`. XCode throws an error because of the call to `npm`. Simple move the line to after `node` and `npm` has been setup. Closes facebook#5156 Reviewed By: svcscm Differential Revision: D2807589 Pulled By: androidtrunkagent fb-gh-sync-id: 30c33145b2cb6f30ff67f6648153d5aa67fb74ed
|
Cherry-picking the commit to 0.18.0-rc and creating a new project breaks the Xcode build for me with: Stack trace: http://pastebin.com/DSFirYm1 npm and node version (I am using nvm): Any ideas? |
|
cc @davidaurelio, @martinbigio for ideas why this happens. |
Summary: This fixes an error introduced in `0.18.0-rc` `node` and `npm` isn't available if the developer is using `nvm` or `nodeenv`. XCode throws an error because of the call to `npm`. Simple move the line to after `node` and `npm` has been setup. Closes #5156 Reviewed By: svcscm Differential Revision: D2807589 Pulled By: androidtrunkagent fb-gh-sync-id: 30c33145b2cb6f30ff67f6648153d5aa67fb74ed
|
Is the cherry pick a problem or is master broken as well? If cherry picking is the issue how about we let this go out in a few weeks with 0.19? |
|
@mkonicek I think my fix is unrelated to the error you're getting. |
|
@mkonicek this file doesn't support ES6 because the |
Summary: This fixes an error introduced in `0.18.0-rc` `node` and `npm` isn't available if the developer is using `nvm` or `nodeenv`. XCode throws an error because of the call to `npm`. Simple move the line to after `node` and `npm` has been setup. Closes #5156 Reviewed By: svcscm Differential Revision: D2807589 Pulled By: androidtrunkagent fb-gh-sync-id: 30c33145b2cb6f30ff67f6648153d5aa67fb74ed
Summary: This fixes an error introduced in `0.18.0-rc` `node` and `npm` isn't available if the developer is using `nvm` or `nodeenv`. XCode throws an error because of the call to `npm`. Simple move the line to after `node` and `npm` has been setup. Closes facebook/react-native#5156 Reviewed By: svcscm Differential Revision: D2807589 Pulled By: androidtrunkagent fb-gh-sync-id: 30c33145b2cb6f30ff67f6648153d5aa67fb74ed
This fixes an error introduced in
0.18.0-rcnodeandnpmisn't available if the developer is usingnvmornodeenv. XCode throws an error because of the call tonpm. Simple move the line to afternodeandnpmhas been setup.