- NPM 下包的時候報錯了,高手幫我看看,謝謝
-
C:\Users>npm install -g ionic
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR!
npm ERR!
npm ERR!
npm ERR! 404 Not Found
npm ERR!
npm ERR!
npm ERR! Error: Not Found
npm ERR! The requested URL /_gh/
was not found on this ser
npm ERR!
npm ERR!
npm ERR!
npm ERR! at Object.parse (native)
npm ERR! at RegClient. (D:\program file\nodejs\node_modules\
est.js:274:23)
npm ERR! at Request._callback (D:\program file\nodejs\node_modules\npm\
js:246:65)
npm ERR! at Request.self.callback (D:\program file\nodejs\node_modules\
npm ERR! at Request.emit (events.js:98:17)
npm ERR! at Request. (D:\program file\nodejs\node_modules\np
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at IncomingMessage. (D:\program file\nodejs\node_mo
6:12)
npm ERR! at IncomingMessage.emit (events.js:117:20)
npm ERR! at _stream_readable.js:944:16
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\program file\nodejs\\node.exe" "D:\program file\
install" "-g" "ionic"
npm ERR! cwd C:\Users\lvyinxi
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! type unexpected_token
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\lvyinxi\npm-debug.log
npm ERR! not ok code 0
最佳回答:
google查了一下,自己解決了,總結一下,還有這問題的哥們可以參考:
1.gogent更新到3.2.x以上,配置自己百度了
2.登陸谷歌賬號,訪問 https://myaccount.google.com/ 停用兩部驗證,啟用不夠安全的應用訪問權限
3.打開gogeng安裝目錄 server文件夾下的uploader.bat 重新上傳appid
4.在打開gogeng客戶端,問題應該解決了