Could not find the App Center CLI. Install appcenter-cli using npm - xamarin

I am trying to run Xamarin UI tests on Visual Studio App Center (Azure DevOps Pipeline) and get error:
(node:14661) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not find the App Center CLI. Install appcenter-cli using npm.

webpack-cli#3.3.10 requires a peer of webpack#^4.x.x but none is installed. You must install peer dependencies yourself.
You could install the latest version of Webpack and add it to your devDependencies with the following command:
npm i -D webpack#latest
About peer dependency of Webpack , you can refer to this document .

Related

Graphql Codegen Wizard Terminated Unexpected

I am trying to use the GraphQL Codegen Wizard for my application. I followed the installation instruction from this site: https://www.graphql-code-generator.com/docs/getting-started/installation
All the dependencies are successfully installed via npm with --legacy-peer-deps due to conflict. When the time to run this command below, the script ended unexpectedly. I did not get a chance to answer the question.
npx graphql-codegen init
enter image description here
what am I doing wrong?
System Details:
OS Windows 10
Node 16.15.1
npm 8.11.0
yarn 1.22.19
Angular CLI 14.0.1
GraphQL ^16
The only fix that I've come up with is downgrading to version 2.10.0 of graphql code generator.
In your package.json make this change -> "#graphql-codegen/cli": "2.10.0"
then npm install

Error on Laravel after installing VueJS. Request failed with status 404

I am developing a small system with Laravel Framework 5.6.39 and everything was going well, until I installed Vue Js. When viewing in the browser, what should be displayed does not appear and the following appears in the console:
How can I solve this error?
I think you need to run:
npm run watch
After adding VueJS to your project you need to install all dependencies by executing:
npm install
Then you can either compile your assets onetime by executing:
npm run dev
Or start a watcher which compiles your assets automatically after detecting a filechange:
npm run watch
The compile process will generate the app.js file which is missing in your case. You can read more about this process or possibilities in laravel here (laravel docs about frontend).
After pulling your project you need to install all dependencies using
npm i
Then you can build it for development one-time using
npm run dev
Or for real-time updates
npm run watch
And when your project is ready for production
npm run prod

docker build of the hyperledger fabric start kit fails on Mac OS X

I'm trying to install and build the Fabric Starter Kit for the Hyperledger Fabric on the Mac OS X following the instructions on http://hyperledger-fabric.readthedocs.io/en/latest/starter/fabric-starter-kit/.
I'm using the Dockerfile that is provided and when I run the next command to build the fabric starter kit it fails:
docker build -t hyperledger/fabric-starter-kit:latest .
I've made sure that I have the latest version of node and npm. When trying to build it fails and I first get the following error:
/bin/sh: 1: npm: not found
I know npm is installed under /usr/local/bin/npm. I first tried to modify the Dockerfile to add the full path to npm but did not work. I then tried to run the command from the Dockerfile manually
npm install hfc
This fails and generates the below error output. Can anyone help? What am I doing wrong?
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.0/node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc#1.0.0 and node#7.1.0 (node-v51 ABI) (falling back to source compile with node-gyp)
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Phonegap installation error (npm)

I have been searching for a solution for two days now to setup Phonegap on my Windows 8.1
system without any success.
Whenever I try to install Phonegap through npm I get an error that I think has to do
with Cordova(-lib).
To install Phonegap I had to install Node.js (v0.10.28) on my system. After this I opened up Windows Powershell and issued the following command like instructed on the Phonegap website:
npm install -g phonegap
Output: (This is the only part of the error)
error notarget No compatible version found: cordova-lib#'lorinbeer/cordova-lib.git#configparser_module'
error notarget Valid install targets:
error notarget ["0.21.2","0.21.3"]
error notarget
error notarget This is most likely not a problem with npm itself.
error notarget In most cases you or one of your dependencies are requesting
error notarget a package version that doesn't exist.
I also tried installing just Cordova through the npm and then install Phonegap, but that
didn't solve anything either.
Running the Powershell with administrator rights also didn't help and tried solutions of other people who also had problems setting up Phonegap, but nothing works.
I really hope that someone could help me out here.
Thanks in advance.
Download the older version. I think there was a problem in the new one
npm install -g phonegap#3.4
I tried this and worked for me.
I had the same issue yesterday. If you check npm-debug.log, you'll notice that there is a permission issue ("Permission denied") when npm tries to access the cordova-lib git repository url. Actually, cordova-lib is a dependency for phonegap. So, it can't install it and I think that's why you get that error.
So, I tried this: install cordova-lib first then Phonegap. Yet, it still won't work; npm does not seem to check if cordova-lib is installed before trying to do it.
At this point, what I could do is to change the repository from which it retrieves cordova-lib. Here is the NPM install syntax:
npm install <tarball file>
npm install <tarball url>
npm install <folder>
npm install <pkg>
npm install <pkg>#<tag>
npm install <pkg>#<version>
npm install <pkg>#<version range>
This means I can install from a tar.gz file. Great! So, I just went to this page https://www.npmjs.org/package/phonegap to check the phonegap repository and performed these steps:
Download the zip of phonegap-cli repo (https://github.com/phonegap/phonegap-cli/archive/master.zip)
Unzip it
Open the package.json file and find the cordova-lib entry in dependencies (line 32)
Change the value to 0.21.3 which is the last version.
Recreate an archive of the folder to the tar.gz format
Open your CLI and run this command:
npm install -g path/to/archive/phonegap-cli-master.tar.gz
It should work now.
Hope that help!
I had a similar problem today too on Mac, even after Lorenzo said it should be all fine. Just running this:
sudo npm install -g phonegap
... produced loads of errors like this:
error: file ./objects/pack/pack-48c0ff4147fb7e8922546c4a857b98a1cb48e01f.pack is far too short to be a packfile
I combined Lorenzo and arpan shah's solutions:
sudo npm install -g phonegap#3.4
sudo npm cache clean
sudo npm update -g phone gap
... and it seemed to magically work.
Problem
We published with a dependency on a branch of cordova-lib. This fork appears unavailable when lots of requests are coming through (I think). One way or another, it's unreliable.
Changing the dependency to 0.21.3 will cause commands to fail, but will allow the install.
Solutions
update the 'cordova-lib' dependency to the npm published version '0.21.3'
**note, this will allow the install, but other phonegap commands will fail
wait for about 20 minutes, then npm update -g phonegap
testing an update to resolve this issue
further updates momentarily
update
We've pushed version 3.5.0-0.20.3 which should resolve this issue
$ npm update -g phonegap
if that doesn't work, try
$ npm cache clean
and reinstall phonegap
I tryed above comamnds npm cache clear and reinstall phoegap. It downloaded all libs but not command line scripts (phonegap command had still 3.4 as version). I found that better was to give command: npm install -g cordova (v 3.5)!

Running 2 Meteor.js apps on the same computer causes error with npm packages

If I launch the first meteor project which uses npm packages via the meteor-npm package, followed by a second meteor project using the meteor-npm package, the first meteor project will suddenly have problem finding the npm packages right after the second meteor server has finished deploying:
Error: Can't find npm module 'mysql'. Did you forget to call 'Npm.depends' in package.js within the 'npm' package?
Restarting the first meteor server, the server output will show
npm: updating npm dependencies -- mysql...
And things will start working.
This problem happens everytime I have 2 meteor 0.7 servers running at the same time on the same system. Is there some problem with the setup/permissions of the npm packages?

Resources