[FIXED]:NPM Error: npm install babel-present-env -D

FIXED: not a bug but a typo on my part

npm install babel-present-env -D
should read
npm install babel-preset-env -D

NPM Error::
https://www.codecademy.com/paths/web-development/tracks/front-end-applications-with-react/modules/learn-javascript-transpilation/lessons/browser-compatibility-and-transpilation/exercises/npm-install

Summery of the report:
Im getting a huge number of errors in the console when I try to install the babel-present-env -D.
Ive copied the errors and they can be seen at the bottom of this page

A google search of the errors uncovered this which suggests that the package has moved:

Possible solution: npm install --save-dev @babel/preset-env
Course URL: https://www.codecademy.com/paths/web-development/tracks/front-end-applications-with-react/modules/learn-javascript-transpilation/lessons/browser-compatibility-and-transpilation/exercises/npm-install
Steps to Reproduce:
Just follow The lesson part 7 “Install Node Packages”

$ ls
$ npm install babel-cli -D
$ npm install babel-preset-env -D

https://www.codecademy.com/paths/web-development/tracks/front-end-applications-with-react/modules/learn-javascript-transpilation/lessons/browser-compatibility-and-transpilation/exercises/npm-install

ERROR LOG:
npm ERR! Linux 4.15.0-1044-aws
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "babel-present-env" "-D"
npm ERR! node v7.10.1
npm ERR! npm  v4.2.0
npm ERR! code E404

npm ERR! 404 Not found : babel-present-env
npm ERR! 404 
npm ERR! 404  'babel-present-env' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ccuser/.npm/_logs/2020-01-04T15_12_24_123Z-debug.log
1 Like