| Summary: | Can we infer the path to npm-cli.js? | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Node | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | libingw, mamacdon |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
One possible approach may be: When the user use npm cmd first time we can try to retrieve it around(up and down some levels?) the node exec path. If we can not find it, we should put some message in the cmd output, say :"Can not find the npm-cli.js path, please define it in the orionode.conf and restart sever". Just like when you start java cmd in a normal shell, it will propmt you that your JVM is not in the env path. By default, the npm path is not in the conf file. So if the user define it we will no longer guess. |