npm package npm-check-updates fails

Asked 2 years ago, Updated 2 years ago, 171 views

"We introduced it because ""npm-check-updates"" is convenient for updating npm packages."
However, when I executed the "ncu" command, an error occurred and I couldn't update it.
The URL of github appears in the log as a solution, but I am ashamed to say that I am not familiar with English, so I did not understand it well.
What is the cause of this error?

$ncu
Hmmmmm...this is taking a long time. Your console is telling me to wait for input
on stdin, but maybe that is not what you want.
Try specifying a package file explicitly with --packageFile package.json.
See https://github.com/tjunnone/npm-check-updates/issues/136#issuecomment-155721102

Environment
Windows 10 1607 Node.js v7.5.0
nodist v0.8.8
npm v4.2.0

node.js npm windows-10

2022-09-30 21:22

2 Answers

Once node.js was installed directly instead of via nodist to rebuild the environment, it was safe to use. (from question contributor's comment)


2022-09-30 21:22

I'm sorry I don't know why, but I can't find package.json.

Try specifying a package file explicitly with --packageFile
package.json.

It says package.json, so why don't you try the following command?I got the same error in this environment, but I solved it with the following command.

$ncu--packageFile package.json


2022-09-30 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.