Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - launchPackager.command cant be opened

I am having trouble building react native ios project.

Error message:

"launchPackage command" can't be opened because it is from an unidentified developer.

enter image description here

Any idea how to fix this?

like image 333
Mykel Aballe Avatar asked May 27 '17 16:05

Mykel Aballe


People also ask

Why can't I open launchpackage command?

"launchPackage command" can't be opened because it is from an unidentified developer. Any idea how to fix this? Show activity on this post. Although this answer will most likely work, you would also allow all future apps from unidentified developers to be installed without being prompted.

How do I implement WebSockets in React Native?

React Native implements a polyfill for WebSockets. These polyfills are initialized as part of the react-native module that you include in your application through import React from 'react'. If you load another module that requires WebSockets, such as Firebase, be sure to load/require it after react-native:

How to fix NPM warn locking error EACCES while using React Native CLI?

If you encounter an error such as npm WARN locking Error: EACCES while using the React Native CLI, try running the following: If you added React Native manually to your project, make sure you have included all the relevant dependencies that you are using, like RCTText.xcodeproj, RCTImage.xcodeproj.

Is there a way to fix the source code of React-Native?

There is a CocoaPods plugin called cocoapods-fix-react-native which handles any potential post-fixing of the source code due to differences when using a dependency manager.


2 Answers

Although this answer will most likely work, you would also allow all future apps from unidentified developers to be installed without being prompted.

To allow executing only the command in question (launchPackager.command), go to your react-native installation folder (most likely node_modules/react-native/scripts) in Finder and right-click launchPackager.command, choose Open and confirm by clicking Open again.

You will not be prompted again for this command as you have allowed execution specifically.

like image 94
malte Avatar answered Oct 17 '22 06:10

malte


Another simple way is to delete node_modules folder from project directory and do npm install. This happened because project was copied from old mac which had node_modules folder created by that old mac user, hence some problem occurs for project transferred to new mac.

like image 15
Raj Avatar answered Oct 17 '22 07:10

Raj