node.js - Windows 7 NODE_PATH global var set but not recognized in package.json -


i installed node v6.0.0, npm v3.8.6 on windows 7 x86. defined global variable node_path:

c:\users\usr\dev\test>echo %node_path% %appdata%\npm\node_modules 

downloaded diferent projects start developing same error:

'node_path' not recognized internal or external command, 

operable program or batch file.

tried different package scripts same error:

package.json:

"scripts": {     "build-js": "node_path=. browserify -t [ babelify --presets [ es2015 ] ] src/client/index.js > public/app.js",  "serve": "node_path=./dist node dist/src/server", 

}

how node_path recognized global variable?

use scripts definition in package.json links file:

"scripts" : { "start" : "node server.js" } 

which contains process.env.node_path reference:

process.env.node_path 

references


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -