next-auth is not installing in my project(Nextjs, React) - javascript

I use yarn create next-app for my nextjs in react project.But next-auth is not
installed in my project. My node version is LTS 16.15.1
and yarn version is 1.22.18, npm version is 8.9.0. I tried in latest version and old
version of nodejs but I am getting this error again and again.Kindly resolve my issue
how to install next-auth in my project.
yarn add v1.22.18
warning ../../../package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
error next-auth#4.3.4: The engine "node" is incompatible with this module.
Expected version "^12.19.0 || ^14.15.0 || ^16.13.0". Got "18.2.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this
command.

Got it from #pfcodes:
Add --ignore-engines flag for install and upgrade operations to get around this for now. here

Related

Yarn Install failing on PROD build. Error - "chalk#4.1.0: The engine "node" is incompatible with this module"

I'm deploying ReactJS Project on PROD environment.
Earlier it was working working but now command "Yarn install" failing.
Getting error
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
error chalk#4.1.0: The engine "node" is incompatible with this module. Expected version ">=10".
error Found incompatible module
No any code changes in pacakage.json
The reason might be the breaking change in version 4 of Chalk[1]. Make sure again if you really use node version 10.x in the productive environment. It is easiest to print out the version (node -v) directly in the deployment pipeline.

Getting syntax error in Meteor project with node v11.10.0

I am getting the following error in my meteor project. I am using node v11.10.0 in macOs. Thanks in advance.
SyntaxError: Use of const in strict mode.
myprojectpath/node_modules/jsforce/node_modules/faye/node_modules/tough-cookie/node_modules/ip-regex/index.js:3
const v4 =
'(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\.(?:25[0-
^^^^^ SyntaxError: Use of const in strict mode.
You could update your meteor (including node) using meteor update outside the project and then meteor update --release && meteor update --all-packages inside the project and finally enter a meteor npm meteor reset and run the project.
To make sure you run the latest npm packages, you may need to check the npm versions. Very helpful is the tool npm-check-updates which you can install outside of the project directory:
meteor npm install -g npm-check-updates
then cd into your project directory and enter
meteor npm-check-updates
to list your current and the latest available stable versions.
If you rely on the Meteor 1.3 (which I discourage as there are many open security issues in the older Meteor and also in the older Node releases), then you may need to install an older version of jsforce in order to get it run again with the older environment you have.
To make sure you have installed the correct npm packages for your 1.3 you can easily check this against a new created project's package.json using:
meteor create --release X.Y.Z some-app-name # replace X.Y.Z with your Meteor version
meteor npm install
cat package.json

Angular 4 Local workspace file ('angular.json') could not be found

I know that there is already questions like this that has answers to it, but i tried the most common solutions and i have been unsuccessful.
I'm cloning an angular 4 project from github and i do an npm install and i get this error when i run ng serve.
Local workspace file ('angular.json') could not be found. Error: Local
workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/workspace-loader.js:37:19)
at WorkspaceLoader.loadWorkspace (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/workspace-loader.js:24:21)
at BuildCommand._loadWorkspaceAndArchitect (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:180:32)
at BuildCommand. (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:47:25)
at Generator.next ()
at /Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:7:71
at new Promise ()
at __awaiter (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:3:12)
at BuildCommand.initialize (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:46:16)
at Object. (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/command-runner.js:87:23)
My node version is
v8.11.2
My angular version is
Angular CLI: 6.0.8
Node: 8.11.2
OS: darwin x64
Angular: 4.1.3
Any suggestions on what i should do ?
Try downgrading your project version of angular-cli to a version that's compatible with ng4...or upgrade the ng4 app to ng6

NodeJS server throws "Updgrade Required" on loading pages even after being updated to latest npm version

I have a node project developed with NodeJS version 5.4.x and NPM version with 3.3.12 on windows. When i tried to run the project after a Quite sometime now it throws "Upgrade Required" on page loaded(HTTP Error code - 426).
Then I have installed NodeJs with 5.5 Stable. And ran couple of commands like
> npm install npm -g
> npm cache clean -f
> npm update -g
And Npm version is upgraded to 3.5.3. And i ran the node js project on eclipse but still the issue persist. Need help. Thanks
The issue happened because of the installation conflict between non-administrative and administrative server instance. The installation was done with administrator and somehow my instance was always working on non-administrative instance. With admin rights I'm able to resolve this.

Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3)

I'm attempting to install (via cloned repository) 'iron-router' for my Meteor project in Windows 7.
( Repo: https://github.com/EventedMind/iron-router )
The output is the following:
While building package `iron-router`:
error: no such package: 'reactive-dict#1.0.0'
error: no such package: 'deps#1.0.0'
error: no such package: 'underscore#1.0.0'
error: no such package: 'ejson#1.0.0'
error: no such package: 'jquery#1.0.0'
error: no such package: 'ui#1.0.0'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: 'webapp#1.0.0'
Anyway, these are all stock packages that seem to be in %LOCALAPPDATA%/.meteor/packages, because I checked to make sure all the directories were there.
Any thoughts? I've been developing in Linux for a while now, but I figured if I could get things working in Windows it would be nice if I were too lazy to bother with rebooting (dual-boot environment) after gaming, etc.
Thanks in advance for any help.
The changelog specifies that iron:router#0.9.0 just came out on 2014-08-12.
https://github.com/EventedMind/iron-router/blob/devel/History.md
The latest version of iron:router has been updated to use the new package system which can only be used with meteor 0.9 release candidates.
From your error log, I can tell the iron-router version you cloned from the repo is actually the latest designed for the new package system (deps#1.0.0 used to be just deps without version number) and it complains that it can't find the meteor core packages it depends on, because you're probably running meteor 0.8.3 instead of 0.9-rc?.
What you need to do is fetch iron-router v0.8.2 from the git repo, the commit sha1 is 05415a8891ea87a00fb1e2388585f2ca5a38e0da
Cloning a git repo from a specific commit hash is a different topic, here is a SO answer to get you started : How to clone git repository with specific revision/changeset?

Categories

Resources