I installed the pod apollo according to this manual, then at the stage where you have to create a run-time, the build does not work, it returns this error I do not understand why ..
Can't find Apollo CLI. Installing...
npm ERR! Error while executing:
npm ERR! /Applications/Xcode.app/Contents/Developer/usr/bin/git ls-remote -h -t ssh://git#github.com/Project/fitto-ios.git
npm ERR!
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mickaelbelhassen/.npm/_logs/2018-08-21T13_43_18_743Z-debug.log
Command /bin/sh failed with exit code 1
And I do not understand why he talks about git ..
Also, the repository ssh://git#github.com/Project/fitto-ios.git is my remote repository, it has nothing to do with Apollo.
Here is my run script is the same as the official documentation:
APOLLO_FRAMEWORK_PATH="$(eval find $FRAMEWORK_SEARCH_PATHS -name "Apollo.framework" -maxdepth 1)"
if [ -z "$APOLLO_FRAMEWORK_PATH" ]; then
echo "error: Couldn't find Apollo.framework in FRAMEWORK_SEARCH_PATHS; make sure to add the framework to your project."
exit 1
fi
cd "${SRCROOT}/${TARGET_NAME}"
$APOLLO_FRAMEWORK_PATH/check-and-run-apollo-cli.sh codegen:generate --queries="$(find . -name '*.graphql')" --schema=schema.json API.swift
You need to install the Apollo CLI from Here Then try building your app again.
Related
I got error npm ERR! Missing script: "sonar" while executing jenkins pipeline job with sonarqube and jenkins integration. Below is the error details.Please anyone got how to solve this error.
thanks in advance.
C:\ProgramData\Jenkins\.jenkins\workspace\sonarqube-pipeline>npm run sonar
npm ERR! Missing script: "sonar"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Windows\system32\config\systemprofile\AppData\Local\npm-cache\_logs\2022-11-25T12_42_55_010Z-debug-0.log
Thanks joe clay,
Now it is working fine.After adding below code in sonar-project.js
"sonar": "node sonar-project.js"
"test": "echo "Error: no test specified" && exit 1"
Thanks for your response it was so much helpful.
enter image description here> # dev C:\xampp\htdocs\laravel9_basic\basic
vite
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. Received protocol 'node:'
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:756:11)
at Loader.resolve (internal/modules/esm/loader.js:85:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:229:28)
at ModuleWrap. (internal/modules/esm/module_job.js:51:40)
at link (internal/modules/esm/module_job.js:50:36) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # dev: vite
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev 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! C:\Users\Sudha\AppData\Roaming\npm-cache_logs\2022-07-23T13_50_47_419Z-debug.log
Has anyone here got "electron" to work under tails distribution? Or any other download binary for that matter? I tried downloading the x64 binary
from the official site, but it won't execute it:
amnesia#amnesia:~/Desktop/temp$ ./electron --help
bash: ./electron: No such file or directory
I tried putting "bash" in front of it and I get a similar error:
amnesia#amnesia:~/Desktop/temp$ bash ./electron --help
./electron: ./electron: cannot execute binary file
I then installed npm and tried to install it from there and I'm getting the following error:
electron#1.6.6 postinstall /usr/local/lib/node_modules/electron
node install.js
sh: 1: node: Permission denied
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! electron#1.6.6 postinstall: `node install.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the electron#1.6.6 postinstall script.
npm ERR! This is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls electron
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.8.0-0.bpo.2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "electron"
npm ERR! cwd /home/amnesia/Desktop/prog
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/amnesia/Desktop/prog/npm-debug.log
npm ERR! not ok code 0
amnesia#amnesia:~/Desktop/prog$
Does tails somehow prevent downloaded binaries from executing? Are
there certain directories that don't allow executables? I am confused.
I am using tails 2.11
I was able to get electron to work in tails by downloading the "ia32" version of the binary. For some reason the electron x64 binary does not work, even though I am using the 64-bit version of tails.
I have an app that uses the Rails framework and implements AngularJs as part of the front end.
I have pushed everything to Heroku and have the Heroku Toolbelt installed, but when I try to migrate the db using "heroku run rake db:migrate" I receive the following error(s):
Installing core plugins heroku-cli-addons, heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status...
Error installing package. Try running again with GODE_DEBUG=info to see more output.
! `run` is not a heroku command.
! Perhaps you meant `-h`, `2fa`, `auth`, `join`, `open`, `orgs`, `pg`, `ps` or `rake`.
! See `heroku help` for a list of available commands.
I then run the command "GODE_DEBUG=info heroku run rake db:migrate" and receive this error:
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/Christopher_Pelnar/.heroku/node-v4.2.1-darwin-x64/bin/node" "/Users/Christopher_Pelnar/.heroku/node-v4.2.1-darwin-x64/lib/node_modules/npm/cli.js" "install" "heroku-cli-addons" "heroku-apps" "heroku-fork" "heroku-git" "heroku-local" "heroku-run" "heroku-status" "--loglevel=info"
npm ERR! node v4.2.1
npm ERR! npm v3.3.8
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ETIMEDOUT 198.105.254.228:8080
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Christopher_Pelnar/.heroku/npm-debug.log
Removing the proxy settings resolved the issue:
npm config rm proxy
npm config rm https-proxy
npm config set registry=http://registry.npmjs.org/
npm config set strict-ssl false
It's worked for me!
Hello I try to execute nodejs job in jenkins:
Jenkins integration with Grunt
But I can't connect to registry.npmjs.org/ throw Jenkins.
I set the Proxy in Jenkins in Plugins->Advanced but I get stil this error:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/TempDemo/workspace
$ /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/recent_node_0.11.11_/bin/npm install -g grunt-cli#~0.1.0
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm ERR! Error: connect ECONNREFUSED
npm ERR! at exports._errnoException (util.js:682:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:947:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! stack: 'Error: connect ECONNREFUSED\n at exports._errnoException (util.js:682:11)\n at Object.afterConnect [as oncomplete] (net.js:947:19)',
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
What should I do now?
I only have a stopgap solution to this as I couldn't find any information on configuring the plugin to work with a proxy. I created a wrapper around the npm executable which sets the proxy details before calling the underlying npm script. The steps:
Setup the NodeJS Installation, start a job which uses it and get the failure (as above). This should leave a Node installation folder in /tools. I see for you this is "/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/recent_node_0.11.11_".
Navigate to the /bin folder at this location.
Rename the npm executable link: "mv npm npm-actual"
Create a new npm file: touch npm
Set the contents as follows:
\#!/bin/sh
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/recent_node_0.11.11_/bin/npm-actual config set proxy "<proxy url with optional credentials>"
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/recent_node_0.11.11_/bin/npm-actual config set https-proxy "<proxy url with optional credentials>"
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/recent_node_0.11.11_/bin/npm-actual "$#"
Be sure that this new npm script is owned by the Jenkins user and that it is marked executable.
Re-run the Jenkins job, it should this time make use of the proxy settings above and be able to download what it needs. These settings mimic those found in ~/.npmrc and more info can be found here:
http://jjasonclark.com/how-to-setup-node-behind-web-proxy
Hope that helps. If anyone has a better, more correct solution I'd love to hear it as well.
You can set NPM to use a proxy, you may need to sudo
npm config set proxy http://yourproxy.com:80