我正在创建-bash:react-native:在创建react-native项目时找不到命令错误.
以下是其他信息
1. brew --version
homebrew 0.9.9
2 brew info watchman
watchman `enter code here`stable 4.50
/usr/local/Cellar/watchman/4.4.0
3. brew info flow
stable 0.24.1
/usr/local/Cellar/flow/0.24.1
4. brew info node
stable 6.1.0
/usr/local/Cellar/node/6.1.0
5. npm -version
3.8.6
6. echo $PATH
/Users/Ashok/.rbenv/shims:/Users/Ashok/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Run Code Online (Sandbox Code Playgroud)
我尝试了从下面的链接建议的步骤,但我仍然得到相同的错误.
我没有他们在解决方案中指定的任何"npm"目录
Ashoks-MacBook-Pro:share Ashok$ ls
aclocal doc info ruby-build zsh
autoconf emacs man systemtap
Run Code Online (Sandbox Code Playgroud)
但我发现npm文件存在于以下位置.
/usr/local/Cellar/node/6.1.0/etc/bash_completion.d
Run Code Online (Sandbox Code Playgroud)
我卸载了react-native并再次安装,但我仍面临同样的问题.
我正在尝试用Jenkins打包iOS ipa.因此,我获得了Keychains和Provisioning Profiles Management插件,并尝试上传所需的钥匙串.我的Mac操作系统是sierra(10.12.2),我在/ Users/admin/Library/Keychains进入文件夹.但是只有一个名为login.keychain-db的文件,当我在Jenkins上传这个文件时它不起作用.错误说上传的文件"login.keychain-db"不是钥匙串或配置文件.那我怎么解决它或者在哪里可以找到login.keychain文件?提前致谢.
我可以使用以下命令归档ios项目
cordova build ios --device --debug
和
cordova build ios --device --release
但是,当我尝试做同样的事情时,jenkins我会得到以下错误.
11:08:01 SecKey API returned: -25308, (null)/Users/Jenkins/Library/Developer/Xcode/DerivedData/GRC_Pulse-ebufuetkmalmfxbiegclmzuryhrm/Build/Intermediates/ArchiveIntermediates/GRC Pulse/InstallationBuildProductsLocation/Applications/GRC Pulse.app: unknown error -1=ffffffffffffffff
11:08:01 Command /usr/bin/codesign failed with exit code 1
11:08:01
11:08:01 ** ARCHIVE FAILED **
11:08:01
11:08:01
11:08:01 The following build commands failed:
11:08:01 CodeSign /Users/Jenkins/Library/Developer/Xcode/DerivedData/GRC_Pulse-ebufuetkmalmfxbiegclmzuryhrm/Build/Intermediates/ArchiveIntermediates/GRC\ Pulse/InstallationBuildProductsLocation/Applications/GRC\ Pulse.app
11:08:01 (1 failure)
11:08:01 Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/cordova/build-debug.xcconfig,-workspace,GRC Pulse.xcworkspace,-scheme,GRC Pulse,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,GRC Pulse.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/build/sharedpch
Run Code Online (Sandbox Code Playgroud) xcode continuous-integration continuous-deployment ios jenkins