删除npm设置的npm config set prefix/npm config cache 全局变量:npm config set prefix "c:program files odejs ode_global 缓存设置:npm config set cache "c:program file odejs ode_cache 设置之后,npm install命名必须得使用管理员权限,因此想恢复默认设置 方法是: 删除c:Usersxxx.npmrc这个文件(注:或者在别的文件夹下,然后全局检索一下) 人生不断地重复着一次一次的问题,把这些问题记录下来,让自己和有需要的人省点时间。