我使用laravel作为应用程序。当我尝试使用npm安装laravel-elixir时,我收到了这个错误。
` C:\OpenServer\domains\kuznets\node_modules\laravel-elixir\node_modules\gulp-sa
ss\node_modules\node-sass\vendor\win32-x64-46\binding.node ` exists.
testing binary.
Binary is fine; exiting.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "laravel-elixir" "--save-dev"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! path C:\Users\Ben\AppData\Roaming\npm-cache\marked\0.3.5\package.t
gz.1968964367
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Вениамин\AppDat
a\Roaming\npm-cache\marked\0.3.5\package.tgz.1968964367' -> 'C:\Users\Вениамин\A
ppData\Roaming\npm-cache\marked\0.3.5\package.tgz'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\Вениамин\Ap
pData\Roaming\npm-cache\marked\0.3.5\package.tgz.1968964367' -> 'C:\Users\Вениам
ин\AppData\Roaming\npm-cache\marked\0.3.5\package.tgz']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\Ben\\AppData\\Roaming\\npm-cache\\marked\\0.3.
5\\package.tgz.1968964367',
npm ERR! dest: 'C:\\Users\\Ben\\AppData\\Roaming\\npm-cache\\marked\\0.3.
5\\package.tgz',
npm ERR! parent: 'cli-usage' }
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! C:\OpenServer\domains\kuznets\npm-debug.log
我该如何解决?我从来没有遇到像这样的问题
答案 0 :(得分:0)
试试这个
sudo npm install laravel-elixir
或添加" -g"在"安装"
之后或者如果它不起作用
cd usr/local/lib/node_modules
然后在那里安装