Using npm to install blink-diff Times error
When you finish installing nodejs and npm, you will report the following error when you start installing blink-diff.
Npm config set prefix "C:\ Program Files\ nodejs\ node_global"
When blink-diff
Npm WARN saveError ENOENT: no such file or directory, open'C:\ Program Files\ nod
Ejs\ package.json'
Npm notice created a lockfile as package-lock.json. You should commit this file.
Npm WARN enoent ENOENT: no such file or directory, open'C:\ Program Files\ nodejs
\ package.json'
Npm WARN nodejs No description
Npm WARN nodejs No repository field.
Npm WARN nodejs No README data
Npm WARN nodejs No license field.
+ blink-diff@1.0.13
Added 27 packages, removed 428 packages and moved 48 packages in 36.884s
Obviously, there is no problem when checking npm-v. But an error was reported as soon as the blink-diff tool was installed.
Because npm is installed in the default directory, there may be no global installation, and some configurations do not support it.
Solution:
When installing the blink-diff tool, add the parameters of the global variable to the successful installation.