Menu

Showing posts with label npm. Show all posts
Showing posts with label npm. Show all posts

npm ERR! No versions available

 C:\Users\mohammadr>npm install gatsby-source-aem

npm notice

npm notice New major version of npm available! 8.19.2 -> 9.2.0

npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0

npm notice Run npm install -g npm@9.2.0 to update!

npm notice

npm ERR! code ENOVERSIONS

npm ERR! No versions available for gatsby-source-aem


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\mohammadr\AppData\Local\npm-cache\_logs\2023-01-04T08_05_41_116Z-debug-0.log

How to install older version of Node.JS and NPM

To install the older version of node.js use the below command. You could find the Node.js version here. https://nodejs.org/en/blog/release/

npm install -g node@14.19.0


To install the older version on npm in your machine use the below npm install command with specified version number. 

npm install -g npm@4.0.0

How to install yarn

yarn : The term 'yarn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 

spelling of the name, or if a path was included, verify that the path is correct and try again.

+ yarn install

+ ~~~~

    + CategoryInfo          : ObjectNotFound: (yarn:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException



Install Yarn using npm or installer

There are two ways to install yran in development machine.

Install yarn using npm

npm install --global yarn

Install yarn using installer

We could download the installer file and install in the machine. link to download >> https://classic.yarnpkg.com/latest.msi


Reference

https://classic.yarnpkg.com/lang/en/docs/install