Node.js

satya - 3/16/2018, 1:34:23 PM

How to install node.js and npm

How to install node.js and npm

Search for: How to install node.js and npm

satya - 3/16/2018, 1:35:11 PM

How to install node.js and npm on windows

How to install node.js and npm on windows

satya - 3/16/2018, 1:36:24 PM

Node.js home page

Node.js home page

satya - 3/16/2018, 1:43:29 PM

What is javascript transpile

What is javascript transpile

Search for: What is javascript transpile

satya - 3/16/2018, 1:50:43 PM

install vscode

install vscode

Search for: install vscode

satya - 3/17/2018, 11:45:37 AM

Node.js Topics

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)

satya - 3/17/2018, 11:46:36 AM

Installation

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...

satya - 3/17/2018, 11:47:17 AM

what is HyperDev

what is HyperDev

Search for: what is HyperDev

satya - 3/17/2018, 11:53:31 AM

Looks like it is called glitch now. Homepage

Looks like it is called glitch now. Homepage

satya - 3/20/2018, 4:43:18 PM

npm homepage

npm homepage

Search for: npm homepage

satya - 3/20/2018, 4:45:21 PM

How to browse npm packages

How to browse npm packages

Search for: How to browse npm packages

satya - 3/21/2018, 8:02:04 AM

npm invalid package.json

npm invalid package.json

Search for: npm invalid package.json

satya - 3/21/2018, 8:50:25 AM

Nightmare to install node.js on windows

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

satya - 3/21/2018, 8:50:39 AM

How best to install node.js on windws?

How best to install node.js on windws?

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

satya - 3/21/2018, 8:52:07 AM

Let me see if this offers any advise

Let me see if this offers any advise

satya - 3/21/2018, 8:55:48 AM

That was useless

That was useless

satya - 3/21/2018, 8:56:06 AM

Here is another article

Here is another article

This suggests upgrading npm right after

satya - 3/21/2018, 8:56:29 AM

npm config directories

npm config directories

Search for: npm config directories

satya - 3/21/2018, 8:57:47 AM

Here are npm folder structures used

Here are npm folder structures used

satya - 3/21/2018, 8:57:57 AM

npm config folders

npm config folders

Search for: npm config folders

satya - 3/21/2018, 8:59:03 AM

What is the difference between npm global and local?

What is the difference between npm global and local?

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

satya - 3/21/2018, 9:22:02 AM

Awful...npm fails to upgrade itself on windows

fails itself because it cannot delete itself in the end

satya - 3/21/2018, 9:24:01 AM

how to upgrade npm on windows

how to upgrade npm on windows

Search for: how to upgrade npm on windows

satya - 3/21/2018, 9:38:52 AM

So this is what I had to do


//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!!

satya - 3/21/2018, 9:39:50 AM

with that


node -v
v 8.10.0

npm -v
5.7.1

satya - 3/21/2018, 9:58:25 AM

npm windows install issues

npm windows install issues

Search for: npm windows install issues

satya - 3/30/2018, 5:43:44 PM

How does node.exe locate required modules?

How does node.exe locate required modules?

satya - 3/30/2018, 5:51:05 PM

what is a NODE_PATH variable for node.js

what is a NODE_PATH variable for node.js

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

satya - 5/25/2019, 11:31:41 AM

How do I know what modules are installed on 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?

satya - 5/25/2019, 11:35:37 AM

what does this mean: npm ERR! extraneous

what does this mean: npm ERR! extraneous

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

satya - 5/25/2019, 11:37:51 AM

An SOF discussion on that

An SOF discussion on that

satya - 5/25/2019, 11:38:31 AM

Short answer

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.

satya - 5/25/2019, 12:09:03 PM

Here is npm install packages documentation

Here is npm install packages documentation

satya - 5/25/2019, 12:14:37 PM

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.

satya - 5/25/2019, 12:15:50 PM

More answers

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.

satya - 5/25/2019, 12:18:57 PM

npm root -g


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

satya - 5/25/2019, 12:19:23 PM

how to install npm global modules

how to install npm global modules

Search for: how to install npm global modules

satya - 6/4/2019, 3:57:58 PM

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

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

satya - 6/4/2019, 3:58:37 PM

However some of them seem to run fine from a command line of windows


npm install -g serverless

for example

satya - 6/4/2019, 3:58:54 PM

what is sls.cmd in node.js

what is sls.cmd in node.js

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

satya - 6/4/2019, 4:59:59 PM

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

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?