我无法在我的系统上的任何地方找到.npmrc文件,并且正如其他线程中所建议的那样,我创建了自己的.npmrc但是doees' nt似乎无法正常工作。
我无法运行任何命令,除了:npm -v
以下是bash中返回的错误消息:
URIError: URI malformed
at decodeURIComponent (<anonymous>)
at Url.parse (url.js:334:19)
at Object.urlParse [as parse] (url.js:144:13)
at Object.validateUrl [as validate] (/usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:172:13)
at validate (/usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:221:24)
at validate (/usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:187:11)
at /usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:104:12
at Array.map (<anonymous>)
at /usr/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:70:15
at Array.forEach (<anonymous>)
/usr/local/lib/node_modules/npm/lib/npm.js:61
throw new Error('npm.load() required')
^
Error: npm.load() required
at Object.get (/usr/local/lib/node_modules/npm/lib/npm.js:61:13)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at process.emit (events.js:182:13)
at process._fatalException (internal/bootstrap/node.js:448:27)