Working Paths

30 views
Skip to first unread message

GlanPlon

unread,
Apr 17, 2018, 9:55:36 AM4/17/18
to nodejs
Hi 
I installed Nodejs on Windows 10 along with a netcdf file reader package. The Nodejs is installed in c:\windows\system32 .
Everything works well if I open the nodejs session in this directory.
However if I change the directory the netcdf package is inaccessible by the require command.

Any help
Glan

Rashik Ansar Shaik

unread,
Apr 17, 2018, 10:39:20 AM4/17/18
to nod...@googlegroups.com
I think you have installed the package so you cannot access it from another directories.

If you want to access from any directory then install it globally using follinf command
npm i -g packageName

Replace packageName with necessary package name

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/fb0f8b4e-7777-4ef3-8291-05bd495f0749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

GlanPlon

unread,
Apr 18, 2018, 1:32:38 PM4/18/18
to nodejs

Thanks , it works now 
Reply all
Reply to author
Forward
0 new messages