我有一个package.json文件,我在我的入门Web项目基础上使用了几个月。今天我将NPM更新到最新版本并在2天前工作时遇到这些错误:
Darwin 15.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v3.8.6
npm ERR! path /Users/PackyTagliaferro/.npm/_locks/staging-5068d5ea0bd1bbae.lock
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, open '/Users/PackyTagliaferro/.npm/_locks/staging-5068d5ea0bd1bbae.lock'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, open '/Users/PackyTagliaferro/.npm/_locks/staging-5068d5ea0bd1bbae.lock']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/PackyTagliaferro/.npm/_locks/staging-5068d5ea0bd1bbae.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/PackyTagliaferro/Sites/Starter-WP/npm-debug.log
非常害怕它搞砸了我的所有项目,如果我更新了Node.js或NPM我的项目将会破坏,现在更加害怕。