Please help. Git repo to Vercel build failed.
I did this a few weeks ago, and now it's suddenly failing.
This is the error I'm getting:
[16:51:16.832] Cloning github.com/benjanknoetze/benjan-spot (Branch: master, Commit: 1a2ddf0)
[16:51:20.725] Cloning completed: 3.893s
[16:51:21.708] Looking up build cache...
[16:51:21.989] Build Cache not found
[16:51:22.220] Running "vercel build"
[16:51:22.720] Vercel CLI 28.2.0
[16:51:22.981] Your application is being built using `next build`. If you need to define a different build step, please create a `vercel-build` script in your `package.json` (e.g. `{ "scripts": { "vercel-build": "npm run prepare && next build" } }`).
[16:51:22.983] Installing dependencies...
[16:51:23.313] yarn install v1.22.17
[16:51:23.323] warning package.json: No license field
[16:51:23.329] info No lockfile found.
[16:51:23.332] warning No license field
[16:51:23.333] [1/4] Resolving packages...
[16:51:23.334] [2/4] Fetching packages...
[16:51:23.335] [3/4] Linking dependencies...
[16:51:23.339] [4/4] Building fresh packages...
[16:51:23.342] success Saved lockfile.
[16:51:23.344] Done in 0.04s.
[16:51:23.355] Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
[16:51:23.355] Error! No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
My packgage.json:
Error message 1
Related
When I run my NextJs program this error always pops up
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist#latest --update-db
So then I run npx browserslist#latest --update-db in the shell:
npx: installed 6 in 1.905s
Current version: 1.0.30001179
New version: 1.0.30001179
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ npm install caniuse-lite
Cleaning package.json dependencies from caniuse-lite
$ npm uninstall caniuse-lite
caniuse-lite has been successfully updated
No target browser changes
And the I when I run my Next program again, the same error occurs. This started happening to me yesterday. I just used npx create-next-app and the npm run dev.
UPDATE
The new version (10.0.6) has been released few moments ago. No warnings present.
This is a falsy warning in current Next.js version (10.0.5).
It's already solved in canary version, which is a base for the next stable version. You can install it (npm install next#canary or yarn add next#canary) and make sure there are no warnings.
Since canary version is not recommended for using in production, you can continue working in 10.0.5 without any side effects. The warning will disappear after new stable version release.
I am trying to understand how to get the version of firebase-admin that is required. My scenario is this:
MYPATH\functions>npm list firebase-admin
functions# MYPATH\functions
`-- UNMET PEER DEPENDENCY firebase-admin#6.5.1
npm ERR! peer dep missing: firebase-admin#^7.0.0, required by firebase-functions#2.3.1
Running npm update firebase-admin does not change anything.
package.json contains this line:
"dependencies": {
...
"firebase-admin": "^6.5.1",
What am I supposed to do?
UPDATE:
When doing firebase serve I get this error:
! Your requested "node" version "6" doesn't match your global version "10"
....
+ hosting: Local server: http://localhost:5000
! The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory.
i functions: Your functions could not be parsed due to an issue with your node_modules (see above)
'npm update' is working, however the '^' carat against "firebase-admin" in your package.json will limit the updates to the 6.x releases - so it's not getting anything newer then the 6.5.1 release.
You can manually change the version of "firebase-admin" in your package.json to "^7.0.0" and then run 'npm install'. This will grab the latest release in the 7.x.x range.
I want to install Rocket.Chat and Meteor on Freebsd 10.3
Does anyone know why when running NPM through Meteor, it is failing to download and install the modules:
[rocketchat#web ~/meteor]$ ./meteor -v
meteor: updating npm dependencies -- meteor-deque...
Building package meteor |
/usr/home/rocketchat/meteor/dev_bundle/lib/node_modules/ip-regex /index.js:3
const word = '[a-fA-F\\d:]';
^^^^^
babel-compiler: updating npm dependencies -- meteor-babel...
ecmascript-runtime: updating npm dependencies -- meteor-ecmascript- runtime...
promise: updating npm dependencies -- meteor-promise...
npm-mongo: updating npm dependencies -- mongodb...
logging: updating npm dependencies -- cli-color...
xmlbuilder: updating npm dependencies -- xmlbuilder...
Errors prevented isopacket build:
While building package meteor:
error: Can't install npm dependencies. Are you connected to the internet?
While building package babel-compiler:
error: Can't install npm dependencies. Are you connected to the internet?
While building package ecmascript-runtime:
error: Can't install npm dependencies. Are you connected to the internet?
error: File not found: .npm/package/node_modules/meteor-ecmascript- runtime/client.js
While building package promise:
error: Can't install npm dependencies. Are you connected to the internet?
error: File not found: .npm/package/node_modules/meteor-promise /promise.bundle.js
I have downloaded a full project that has been in use for about a year now, I got a new computer and am trying to upload a change to a function. I had errors and now I am trying to redeploy a function that I know works and is the same as the source in Google Cloud.
I run:
firebase deploy --only functions:generateThumbnail
and this is the output:
deploying functions
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
Error: Error parsing triggers: Cannot find module './dnssec'
Try running "npm install" in your functions directory before deploying.
I run npm install:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
audited 7867 packages in 6.019s
found 20 vulnerabilities (3 low, 17 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
then I ran npm audit fix:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
removed 1 package and updated 5 packages in 7.583s
fixed 8 of 20 vulnerabilities in 7867 scanned packages
2 package updates for 12 vulns involved breaking changes
(use `npm audit fix --force` to install breaking changes; or do it by hand)
..I am still getting the same error as before:
Error: Error parsing triggers: Cannot find module './dnssec'
Hey so I think this is an issue with npm not updating the packages correctly. I was running into the same error.
Error: Error parsing triggers: Cannot find module './dnssec'
I found that the dnssec resource is within the 'sshpk' node module folder. So in order to correct the error I just went into the node_modules folder of my functions directory and removed the 'sshpk' module, and while still in the functions directory ran 'npm install'. Hopefully this works for you and some other people running into this issue.
Cheers. Good luck!
"C:\Program Files (x86)\Yarn\bin\yarn.cmd" add sass-loader node-sass --dev
yarn add v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error fsevents#1.1.3: The platform "win32" is incompatible with this module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error Found incompatible module
Process finished with exit code 1 at 15:24:10.
Execution time: 22 799 ms.
.....
What a cause of this error?
the problem is in node_modules directory and this is the solution : https://github.com/yarnpkg/yarn/issues/626
Thanks for helps!
This problem solved, I install 'webpack' first in my project.