I'm suddenly getting an error on my CI system when installing plugins to build my cordova app. I get an error like this for each of the plugins that needs to be installed:
> (node:2491) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/{repo}/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes"
fetch: Installing https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes to /home/runner/work{repo}
Running command: npm install https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes --production --save-exact
Command finished with error code 0: npm install,https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes,--production,--save-exact
Failed to fetch plugin https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Could not determine package name from output:
added 3 packages, and audited 587 packages in 5s
This is the output when I specify the --verbose flag when installing the plugins. This happens both when building using Bitrise and GitHub Actions, so it doesn't appear to be specific to any particular platform. I've checked the status of both services, as well as the status of npm, and there's been no reported incident that would cause this. Moreover I tried installing plugins locally on my system and the problem did NOT happen. So it would seem that there's something up with the CI config. Any ideas what could be the problem?
Related
I am running into a problem when I try to install react / babel on my computer. If anyone can help, I would appreciate.
I am running a Ubuntu Ubuntu 20.04 LTS
node -v 14.4.0, so the documentation would be okay.
npm -v is 6.14.5
The problem is, every time I run the command npx create-react-app my-app , I receive this error:
Creating a new React app in /home/leni/Desktop/Tests/bla/my-app.
**warning You are using Node "15.0.0-nightly202006043a7a5d7e62"** which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
(node:102555) [DEP0139] **DeprecationWarning: Calling process.umask() with no arguments is prone to race conditions and is a potential security vulnerability**.
(Use `node --trace-deprecation ...` to show where the warning was created)
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
yarn add v1.22.4
warning You are using Node "15.0.0-nightly202006043a7a5d7e62" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
(node:102590) [DEP0139] DeprecationWarning: Calling process.umask() with no arguments is prone to race conditions and is a potential security vulnerability.
(Use `node --trace-deprecation ...` to show where the warning was created)
[1/4] Resolving packages...
[2/4] Fetching packages...
**error #babel/core#7.9.0: The engine "node" is incompatible with this module.** **Expected version ">=6.9.0". Got "15.0.0-nightly202006043a7a5d7e62"**
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/leni/Desktop/Tests/bla/my-app has failed.
Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting my-app/ from /home/leni/Desktop/Tests/bla
Done.
I am sure that I am using node v14.4.0 but every time that I try to create a react project, I encounter failure, any idea in how to solve this? I tried to use Next.js as well, but I had the same problem.
Thank you very much for the help.
Leni
I just encountered the same error. Make sure you don't have a Node app installed through the Ubuntu Software "shop". Deleting it fixed the issue for me.
I am still trying to find the best solution but digging on stackoverflow I found this command and it worked fine.
create-react-app react-app --use-npm
We've recently upgraded our project Meteor version to v1.8.2, however when running the following command: meteor update --all-packages, were encountering some strange errors. Here's an example of one the errors:
=> Errors while initializing project:
While loading package angular-compilers#0.3.4:
error: Command failed: C:\Windows\system32\cmd.exe /c
E:\Applications\Meteor\.meteor\packages\meteor-tool\1.10.2\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd rebuild --update-binary
Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
Some additional information:
After checking the logs, it seems the meteor tool were using is 1.10.2. Does using the latest meteor tool for a v1.8.2 project cause issues?
1 verbose cli 'E:\\Applications\\Meteor\\.meteor\\packages\\meteor-tool\\1.10.2\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe',
Any ideas what's wrong?
Thanks!
Can you post the full logs from meteor update?
Are you using fourseven:scss? Because it installs it’s own version of node-sass which is likely the problem.
Have a look at the version compatibility table here: https://github.com/Meteor-Community-Packages/meteor-scss
And check that the version of fourseven:scss matches a compatible meteor version.
The alternative is to remove it, update and install the atmosphere package again, that way it won’t get in the way of the updater’s dependency resolver
Note that if you are using fourseven:scss, there’s no need to have node-sass in package.json.
When running npx grunt on a system with recent enough nodejs, the build errors out with:
Loading "Gruntfile.js" tasks...ERROR
>> Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)
>> For more information on which environments are supported please see:
>> https://github.com/sass/node-sass/releases/tag/v4.11.0
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
When run as npx grunt --force, it says:
$ npx grunt --force
/usr/bin/node: bad option: --force
How to fix the build?
P.S. System is ArchLinux, native nodejs version is 12.9.1-1. Sorry, I'm not a javascript developer -- I just need to build this external thing without issues. The same repository used to build just fine. I did clean up all caches during testing it, but it doesn't help. Running "npm install" doesn't fix the error either.
Upgrading package.json / node-sass to latest version (4.12.0?) might help.
The official release notes for this version mention "Node 12 support" as well: https://github.com/sass/node-sass/releases/tag/v4.12.0
When I tried to add a plugin or platform (or prepare the project), I'm always getting this:
Error: Failed to fetch plugin cordova-sqlite-storage#^2.0.4 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code ENOENT
I tried to reinstall nodejs, uninstalled and reinstaled.
The same with cordova. I also tried to install a previous version of cordova.
Notes and environment:
- OS: Windows 10
- NPM packages are working
I have an error when installing phonegap.
I have a problem with the https://github.com/ariya/esprima/tarball/master package, as it cannot be installed.
I have changed many different registries but all failed on the esprima module.
I even download the exact tarball manually from github and executed the following on the local filesystem:
npm install file_url
There is no sign of failure but "phonegap" command cannot still be used.
Please tell me how to install the failed module and finally get phonegap to work?
Thank you very much!