这是我第一次使用sass。我在桌面上创建了一个新文件夹,然后在vscode上打开它。我进去了
npm init --yes
我的package.json文件出现在我的文件夹中,然后我进入
npm install node-sass
我有一些错误。我被这个错误卡住了一个星期,这个平台上的任何解决方案都不适合我。以下是我得到的错误:
PS C:\Users\RUKİYE\OneDrive\Masaüstü\dene> npm install node-sass
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\Users\RUKİYE\AppData\Local\npm-cache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Users\RUKİYE\AppData\Local\npm-cache'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'C:\Users\RUKİYE\AppData\Local\npm-cache'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\\Users\\RUKİYE\\AppData\\Local\\npm-cache'
npm ERR! or that you lack permissions to access it.
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.
npm ERR! Log files were not written due to an error writing to the directory: C:\Users\RUKİYE\AppData\Local\npm-cache\_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
1条答案
按热度按时间xuo3flqw1#
如果路径中的土耳其字符导致npm解析或处理路径的方式出现问题,则可能会导致此错误。