Why the "npm install prompt-sync" command is not working at all?

E Z 11 Reputation points
2022-02-04T20:39:53.177+00:00

I have entered the "npm install prompt-sync" in the command prompt window after running it as administrator and also in Windows PowerShell but I keep getting the Error: Cannot find module 'prompt-sync'

I even entered this command in Windows PowerShell ISE but this is exactly the same.

This is also exactly the same with both "Developer Command Prompt for VS 2022 Preview" and "Developer PowerShell for VS 2022 Preview"

This is also exactly the same with Git!

I even tried the "npm audit fix --force" command as both the command prompt and PowerShell suggest but this does not solve the problem at all.

I also entered the "yarn add prompt-sync" command and both command prompt and Windows PowerShell said that the "prompt-sync" module was added but this command also appears to be doing nothing exactly like "npm install prompt-sync".

I read somewhere that the "npm install prompt-sync" command should install the "prompt-sync" module so it can be used by all NodeJS programs, applications and scripts but it doesn't seem to do anything.

Both the command prompt and Windows PowerShell tell me that it does install the module but this is not eliminating the error above.

I tried to do the same with Chocolatey but the Chocolatey window appears only for a half second and then immediately disappears every time I click the command to run Chocolatey and I don't even know why this is happening at all.

I want to do the same with Ninite but I don't find Ninite anywhere whenever searching for it.

I even reinstalled (Uninstalled and then installed again) NodeJS and restarted Windows 11 but this also did not solve the problem at all.

I even reinstalled (Uninstalled and then installed again) Visual Studio 2022 Preview and restarted Windows 11 but this also did not solve the problem at all.

Why the "npm install prompt-sync" command is not working at all?

Do I enter it in a wrong place?

If yes then where exactly should I enter this command?

Or better what to do or how exactly to install the "prompt-sync" module so that all my NodeJS programs, applications and scripts can use it?

Windows for business Windows Server User experience PowerShell
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2022-02-05T20:03:47.287+00:00

    Why are you not asking this question in a place line StackOverflow (stackoverflow.com)?

    Npm is a database of JavaScript packages. Why you think that a Microsoft forum for PowerShell or Windows 11 is an appropriate place to ask about a problem you're having with installing a package with 3rd-part software it is a little bit of a reach, don't you think?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.