nodejs更换npm默认安装路径 查看包路径 npm config ls NPM默认的管理包路径在C:/用户/[用户名]/AppData/Roming/npm/node_modules,为了方便对依赖包管理,我们将管理包的路径设置在单独的地方,本教程将安装目录设置在node.js的目录下,创建npm_modules和npm_cache,执行下边的命令: npm config set prefix "C:\Program Files\nodejs\npm_modules" npm co
npm publish bug & solution npm ERR! Unexpected token < in JSON at position 0 while parsing near ' 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/Users/xgqfrms-mbp/.nvm/versions/node/v12.18.0/bin/node', 1 verbose cli '/Users/xgq