Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage npx to do 'npm install' w/o sudo #194

Closed
LazarusX opened this issue Jun 29, 2018 · 2 comments
Closed

Leverage npx to do 'npm install' w/o sudo #194

LazarusX opened this issue Jun 29, 2018 · 2 comments
Assignees
Labels

Comments

@LazarusX
Copy link
Contributor

npx is a tool bundled with npm 5.2 or later (npm 5.2 is released on 2017-07-05, and bundled with Node.js 8.2.0).

In short, npx installs things using ~/.npm/_npx as a "global prefix", and then adds ~/.npm/_npx/bin to $PATH. By leveraging npx, we can avoid using sudo on *nix systems to install the Node.js module template, and combine two commands (npm install -g and yo azure-iot-edge-module) into a single one.

Learn more about npx:

My current work-in-progress branch: https://github.com/Microsoft/vscode-azure-iot-edge/tree/ray-npx

@LazarusX LazarusX self-assigned this Jun 29, 2018
@adashen adashen added the P2 label Sep 17, 2018
@LazarusX
Copy link
Contributor Author

LazarusX commented Dec 5, 2018

Just took time a measure, it took a minute to add a new Node.js module w/ template installation vs. 7 seconds w/o template installation

@LazarusX
Copy link
Contributor Author

LazarusX commented Mar 1, 2019

Implemented by #329

@LazarusX LazarusX closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants