Windows10环境 npm run dev 报错  终于找到正确答案

Error: EPERM: operation not permitted, open '/data/public/build/css/add.png'

原因: 我是运行在docker的php环境中的,nginx 和php-fpm在 docker中, 解决: 停止docker中的nginx 重新执行 npm run dev 就可以了   执行之后再start启动docker就可以了
感谢 https://blog.csdn.net/w770583069/article/details/82116116 提供的思路
PS /data> npm run dev

> @ dev /data> npm run development

> @ development /data> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

95% emitting

DONE  Compiled successfully in 610ms                                                                           12:33:39

fs.js:114throw err;^

Error: EPERM: operation not permitted, open '/data/public/build/css/add.png'at Object.openSync (fs.js:438:3)at copyFileSync (/data/node_modules/fs-extra/lib/copy-sync/copy-file-sync.js:23:18)at Object.copySync (/data/node_modules/fs-extra/lib/copy-sync/copy-sync.js:43:5)at File.copyTo (/data/node_modules/laravel-mix/src/File.js:193:12)at FileCollection.copyTo (/data/node_modules/laravel-mix/src/FileCollection.js:101:13)at src.forEach.file (/data/node_modules/laravel-mix/src/FileCollection.js:76:38)at Array.forEach (<anonymous>)    at FileCollection.copyTo (/data/node_modules/laravel-mix/src/FileCollection.js:76:17)    at FileCollection.copyTo (/data/node_modules/laravel-mix/src/FileCollection.js:94:25)    at src.forEach.file (/data/node_modules/laravel-mix/src/FileCollection.js:76:38)    at Array.forEach (<anonymous>)        at FileCollection.copyTo (/data/node_modules/laravel-mix/src/FileCollection.js:76:17)        at CopyFilesTask.run (/data/node_modules/laravel-mix/src/tasks/CopyFilesTask.js:14:20)        at CustomTasksPlugin.runTask (/data/node_modules/laravel-mix/src/webpackPlugins/CustomTasksPlugin.js:33:14)        at Mix.tasks.forEach.task (/data/node_modules/laravel-mix/src/webpackPlugins/CustomTasksPlugin.js:9:44)        at Array.forEach (<anonymous>)            at Compiler.compiler.plugin.stats (/data/node_modules/laravel-mix/src/webpackPlugins/CustomTasksPlugin.js:9:23)            at Compiler.applyPlugins (/data/node_modules/tapable/lib/Tapable.js:61:14)            at emitRecords.err (/data/node_modules/webpack/lib/Compiler.js:264:11)            at Compiler.emitRecords (/data/node_modules/webpack/lib/Compiler.js:371:38)            at emitAssets.err (/data/node_modules/webpack/lib/Compiler.js:258:10)            at applyPluginsAsyncSeries1.err (/data/node_modules/webpack/lib/Compiler.js:364:12)            at next (/data/node_modules/tapable/lib/Tapable.js:218:11)            at Compiler.compiler.plugin (/data/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)            at Compiler.applyPluginsAsyncSeries1 (/data/node_modules/tapable/lib/Tapable.js:222:13)            at Compiler.afterEmit (/data/node_modules/webpack/lib/Compiler.js:361:9)            at require.forEach.err (/data/node_modules/webpack/lib/Compiler.js:350:15)            at /data/node_modules/async/dist/async.js:473:16            at iteratorCallback (/data/node_modules/async/dist/async.js:1064:13)            at /data/node_modules/async/dist/async.js:969:16            npm ERR! code ELIFECYCLE            npm ERR! errno 1            npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`            npm ERR! Exit status 1            npm ERR!            npm ERR! Failed at the @ development script.            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

            npm ERR! A complete log of this run can be found in:            npm ERR!     C:/Users/Administrator.PC-20190309QPVT/AppData/Roaming/npm-cache/_logs/2019-03-21T04_33_39_487Z-debug.log            npm ERR! code ELIFECYCLE            npm ERR! errno 1            npm ERR! @ dev: `npm run development`            npm ERR! Exit status 1            npm ERR!            npm ERR! Failed at the @ dev script.            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

            npm ERR! A complete log of this run can be found in:            npm ERR!     C:/Users/Administrator.PC-20190309QPVT/AppData/Roaming/npm-cache/_logs/2019-03-21T04_33_39_515Z-debug.log

巨坑npm run dev 报错 终于找到正确答案 Error: EPERM: operation not permitted, open '/data/public/build/css/add.p的更多相关文章

  1. vue项目初始化时npm run dev报错webpack-dev-server解决方法

    vue项目初始化时npm run dev报错webpack-dev-server解决方法 原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好webpack-dev- ...

  2. nuxt.js 初始化 npm run dev 报错

    在初始化 npm install 了基本依赖后: npm run dev 报错: error in ./server/index.js Module build failed: Error: Plug ...

  3. npm run dev 报错 iview TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

    运行npm run dev报这个错 然后找到 D:\text\vue\iview-admin\build\webpack.dev.config.js打开 将这一行代码: fs.write(fd, bu ...

  4. npm run dev 报错:Error: Cannot find module 'webpack-cli/bin/config-yargs'

    使用 npm run dev 时报错: Error: Cannot find module 'webpack-cli/bin/config-yargs' 原因是找不到webpack-cli这个包,使用 ...

  5. Vue 项目: npm run dev 报错 webpack-dev-server

    从码云上下载vue项目,运行npm run dev 时报错: > webpack-dev-server --inline --progress --config build/webpack.de ...

  6. vue.js环境配置步骤及npm run dev报错解决方案

    安装完成后,使用npm run dev 运行,成功后,就可以在浏览器中看到vue的欢迎画面了 最后一步可能报错,我就遇到这样的问题了, 个人问题仅供参考: ERROR Failed to compil ...

  7. npm run dev 报错 run `npm audit fix` to fix them, or `npm audit` for details

    前几天写的直接运行npm run dev还是ok的,突然不行了,前面报错是css-loader没有,删除style标签上的lang='scss'就好了,先不需要这个依赖.这个先不管. 只是后面的 ru ...

  8. vue项目,npm install后,npm run dev报错问题

    报错: ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! metools@1.0.0 dev: `node build/dev-server.js` npm ...

  9. vue 运行npm run dev报错

    npm run dev运行时报错,原因有很多. 一般用下面这种方法都能解决的. 最简单粗暴的方法: 1.删除依赖包node_modules 2.然后重新npm install就行了 (如果这步报错了, ...

随机推荐

  1. 永续公债(or统一公债)的麦考利久期(Macaulay Duration)的计算

  2. SEO网页优化

    1.h1~h6标签的使用: 大标题(最主要的标题)用h1,依次往下. 2.为每一个在HTML里的img添加Alt属性 3.给a标签加title 4.css sprites 5.启动keep-Alive ...

  3. javascript 正则test、exec、search、match区别?

    都可以放正则表达示 exec是RegExp类的匹配方法 match是字符串类的匹配方法 test() 方法用于检测一个字符串是否匹配某个模式.返回 true,否则返回 false. var resul ...

  4. combine_lat_dirs.sh

    #!/bin/bash # Copyright 2018 Jarvan Wang Apache 2.0. # Copyright 2016 Xiaohui Zhang Apache 2.0.     ...

  5. 更改MySQL密码

    #安装MySQL5.7参考:https://blog.csdn.net/qq_23033339/article/details/80872136#MYSQL的基础操作参考:https://www.cn ...

  6. 浅入深出Vue:前言

    浅入深出Vue系列文章 之前大部分是在做后端,后来出于某些原因开始接触Vue.深感前端变化之大,各种工具.框架令人眼花缭乱.不过正是这些变化,让前端开发更灵活. 博主在刚开始时,参考官网的各个步骤以及 ...

  7. 命名空间的using声明

    using声明具有如下的形式: using namespace::name; 一旦声明了上述语句,就可以直接访问命名空间中的名字: #include<iostream> //using声明 ...

  8. 3D Slicer中文教程(五)—三维视图颜色改变

    3D Slicer在分割后三维重建的图像,效果很好,但是存在一定的不足,默认的颜色并不是很合适,这时手动设置三维视图下的需要的颜色就很有必要了.如下图所示,默认的三维重建后的颜色. 这样的颜色显然不是 ...

  9. Qt+mpg123+openal播放MP3流

    #ifndef PLAYSTREAM_H #define PLAYSTREAM_H #include <QObject> #include "../libMPG123/mpg12 ...

  10. 3D模型网站分享

    http://www.cgjoy.com/work.php  CG作品网 http://www.cgmxw.com/ CG模型王 http://www.cgmodel.cn/ CG模型网