NPM command prompt closes immediately [closed]
I'm new to nodejs, after installing the node.msi
I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help
windows
closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I'm new to nodejs, after installing the node.msi
I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help
windows
closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I'm new to nodejs, after installing the node.msi
I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help
windows
I'm new to nodejs, after installing the node.msi
I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help
windows
windows
asked Jan 2 at 0:54
NexusNexus
61
61
closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
add a comment |
Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
add a comment |
Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.
Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.
answered Jan 2 at 6:59
Harsh VishwakarmaHarsh Vishwakarma
428
428
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
add a comment |
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this
– Nexus
Jan 2 at 9:11
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
need to look at package.json before i can answer anything. update your package.json in your question.
– Harsh Vishwakarma
Jan 2 at 9:29
add a comment |