Prefix=null

after installing cnpm, there is no problem printing cnpm-v. Prefix=null, causes an error when using the cnpm command later

clipboard.png

clipboard.png

prefix=null

clipboard.png

clipboard.png

ask the Great God for help to see where there is something wrong with the configuration of the environment.

Mar.04,2021

I generally choose to set it up as a command, and configure these two folders in other drive letters to prevent permission problems

npm config set prefix "D:\nodejs\node_global" //
npm config set cache "D:\nodejs\node_cache" //
Menu