Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

murilo's avatar
Level 10

Install Babel Polyfill in Laravel 5.6

Hello Guys , I am trying to install Babel Polyfill in Laravel 5.6 , But it was not success - I tried to installed in the shell -

npm install --save babel-polyfill

It gave me this error -


$ npm install --save babel-polyfill
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! path E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Murilo\AppData\Roaming\npm-cache\_logs18-03-21T22_53_37_969Z-debug.log


my package is like this -

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.17",
        "bootstrap": "^4.0.0",
        "popper.js": "^1.12",
        "cross-env": "^5.1",
        "jquery": "^3.2",
        "laravel-mix": "^2.0",
        "lodash": "^4.17.4",
        "vue": "^2.5.7"
    },
    "dependencies": {
        "vue-sweetalert2": "^1.2.4" 
    }
}


does some one knows what is is happening ?

Thanks a lot

0 likes
3 replies
bashy's avatar

Trying to delete a file but it can't? Is that to do with notifications from cli?

bashy's avatar

I don't think it's to do with the installing but this line;

Error: EPERM: operation not permitted, unlink 'E:\xampp\htdocs\test\node_modules\.staging\node-notifier-549a8a15\vendor\notifu\notifu.exe'

Looks like it's trying to remove it but Windows isn't allowing it. Not much I can help with really.

Please or to participate in this conversation.