課程
/前端開發
/Vue.js
/3小時速成 Vue2.x 核心技術
在之間明明已經裝過全局cli了,也使用cli創建的項目,可是在單獨run這個demo.vue的時候卻報錯,仍舊讓我裝cli…有點懵
2019-04-16
源自:3小時速成 Vue2.x 核心技術 4-2
正在回答
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue'
npm ERR!? { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue']
npm ERR! ? stack:
npm ERR!? ? 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/@vue\'',
npm ERR! ? errno: -13,
npm ERR! ? code: 'EACCES',
npm ERR! ? syscall: 'access',
npm ERR! ? path: '/usr/local/lib/node_modules/@vue' }
npm ERR!?
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! ? ? /Users/zhuqiwei/.npm/_logs/2019-04-27T14_13_21_864Z-debug.log
192:~ zhuqiwei$?
第一次是全局安裝Vue腳手架:npm?install?-g?@vue/cli
這次是對單個?*.vue?文件進行快速原型開發中vue?serve命令和vue?build命令所需要安裝的一個全局插件:npm?install?-g?@vue/cli-service-global 試試裝下這個再去調試demo1
Brian
舉報
帶你快速學習最流行的前端框架vue2.x的核心技術
2 回答安裝vue-cli有問題
1 回答vue Cli創建項目 連接斷開問題
2 回答安裝vue-cli和使用vue Ui 相關問題
1 回答使用Vue-cli
2 回答vue和vue-cli和@vue/cli是三個不同的東西?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-04-27
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue'
npm ERR!? { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@vue']
npm ERR! ? stack:
npm ERR!? ? 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/@vue\'',
npm ERR! ? errno: -13,
npm ERR! ? code: 'EACCES',
npm ERR! ? syscall: 'access',
npm ERR! ? path: '/usr/local/lib/node_modules/@vue' }
npm ERR!?
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!?
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! ? ? /Users/zhuqiwei/.npm/_logs/2019-04-27T14_13_21_864Z-debug.log
192:~ zhuqiwei$?
2019-04-17