簡體   English   中英

在npm中為網絡托管安裝Firebase時出錯

[英]Error in installing Firebase in npm for Web hosting

我嘗試在npm中安裝Firebase,但效果不佳。 我只復制並粘貼$ npm install -g firebase-tools 收到此消息后

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "firebase-tools"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! path ../lib/node_modules/firebase-tools/bin/firebase
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink

npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/firebase-tools/bin/firebase' -> '/usr/local/bin/firebase'
npm ERR!     at Error (native)
npm ERR!  { Error: EACCES: permission denied, symlink '../lib/node_modules/firebase-tools/bin/firebase' -> '/usr/local/bin/firebase'
npm ERR!     at Error (native)
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../lib/node_modules/firebase-tools/bin/firebase',
npm ERR!   dest: '/usr/local/bin/firebase' }
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/hansangjun/npm-debug.log
npm ERR! code 1

您正在以普通用戶身份運行它。 使用以下命令運行相同的命令

sudo npm install -g firebase-tools

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM