Node.js

How to install node.js and npm

Search for: How to install node.js and npm

How to install node.js and npm on windows

Node.js home page

What is javascript transpile

Search for: What is javascript transpile

install vscode

Search for: install vscode

Files as Js Modules

Require key word converts modules to javascript objects and make them available for use

Modules host functions which can be exported out

Node executes any javascript on the fly which can make use of modules converted to javascript objects.

http module (object)

request module (object)

response module (object)

Straight forward

installed on windows without any issues

Comes with npm

Installed VsCode editor

VsCode needs git

So installed git as well

That installs Bash and a whole bunch of nasty stuf...

what is HyperDev

Search for: what is HyperDev

Looks like it is called glitch now. Homepage

npm homepage

Search for: npm homepage

How to browse npm packages

Search for: How to browse npm packages

npm invalid package.json

Search for: npm invalid package.json

npm is cute

it is intrusive, messy, undpredictable

Node is installed in one place

and a whole bunch of system directories are co-opted for npm

Installed and uninstalled thinking to fix directories

uninstall doesnt clean up. Remembers crap I did before

Some package.json is always broke right out of installation

So many environmental variables are called home or starts with HOME it is a bit funny

How best to install node.js on windws?

Search for: How best to install node.js on windws?

Let me see if this offers any advise

That was useless

Here is another article

This suggests upgrading npm right after

npm config directories

Search for: npm config directories

Here are npm folder structures used

npm config folders

Search for: npm config folders

What is the difference between npm global and local?

Search for: What is the difference between npm global and local?

fails itself because it cannot delete itself in the end

how to upgrade npm on windows

Search for: how to upgrade npm on windows


//Roughly
xcopy node\node_modules\npm to test\node_modules\npm /s /e
mv node\npm.* to test\*.*

//Then run from test directory
npm.cmd install -g npm

This is nuts!!


node -v
v 8.10.0

npm -v
5.7.1

npm windows install issues

Search for: npm windows install issues

How does node.exe locate required modules?

what is a NODE_PATH variable for node.js

Search for: what is a NODE_PATH variable for node.js

How do I know what modules are installed on node.js?

Search for: How do I know what modules are installed on node.js?

what does this mean: npm ERR! extraneous

Search for: what does this mean: npm ERR! extraneous

An SOF discussion on that

npm ERR! extraneous means a package is installed but is not listed in your project's package.json.

Since you're listing packages that have been installed globally, it's going to give you a lot of extraneous errors that can be simply ignored because most things installed globally will not be in your project's package.json.

Here is npm install packages documentation

You can run npm list -g to see where global libraries are installed.

You can run npm list -g to see where global libraries are installed.

On Unix systems they are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules when installed globally. If you set the NODE_PATH environment variable to this path, the modules can be found by node.

Windows XP - %USERPROFILE%\AppData\npm\node_modules

Windows 7, 8 and 10 - %USERPROFILE%\AppData\Roaming\npm\node_modules

Non-global libraries

Non-global libraries are installed the node_modules sub folder in the folder you are currently in.

You can run npm list to see the installed non-global libraries for your current location.


c:\satya\i\node>npm root -g
c:\satya\i\node\node_modules

how to install npm global modules

Search for: how to install npm global modules

When i run npm installs from vscode command line it seem to hang

Search for: When i run npm installs from vscode command line it seem to hang


npm install -g serverless

for example

what is sls.cmd in node.js

Search for: what is sls.cmd in node.js

How do I create an aws lambda function from S3 zip file deployment package?

Search for: How do I create an aws lambda function from S3 zip file deployment package?