添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After update of react slingshot to latest version of dependencies and dev and prod configurations i get the following error when trying to run npm start -s:

[hardsource:3eb2c03d] Using 49 MB of disk space.
[hardsource:3eb2c03d] Tracking node dependencies with: package-lock.json.
[hardsource:3eb2c03d] Reading from cache 3eb2c03d...
[hardsource:3eb2c03d] Cache is corrupted.
Error: EPERM: operation not permitted, rename 'D:\Projects\MyProject\node_modules\.cache\hard-source\3eb2c03d0f2205c7fb0668881313097dbfc3c7061c45deab39219a4957c473a0\assets-parity~' -> 'D:\Projects\MyProject\node_modules\.cache\hard-source\3eb2c03d0f2205c7fb0668881313097dbfc3c7061c45deab39219a4957c473a0\assets-parity'
[Browsersync] Access URLs:
 -----------------------------------
       Local: http://localhost:3000
    External: http://10.1.67.13:3000
 -----------------------------------
          UI: http://localhost:3001
 UI External: http://10.1.67.13:3001
 -----------------------------------
[Browsersync] Serving files from: src
[Browsersync] Watching files...
i 「wdm」: wait until bundle finished: /index.html
[hardsource:3eb2c03d] Last compilation did not finish saving. Building new cache.
events.js:183
      throw er; // Unhandled 'error' event
Error: EPERM: operation not permitted, lstat 'D:\Projects\MyProject\node_modules\.cache\hard-source\3eb2c03d0f2205c7fb0668881313097dbfc3c7061c45deab39219a4957c473a0\assets-parity\log0000'
          

From existing that I have react-slingshot I update files package.json, dev and prod config. Windows 10 x64 node v8.12.0 npm v6.4.1
my package.json:

"name": "myApp", "version": "1.0.0", "description": "application", "engines": { "npm": ">=3" "scripts": { "preinstall": "node tools/nodeVersionCheck.js", "start-message": "babel-node tools/startMessage.js", "prestart": "npm run start-message", "start": "concurrently -k -r -s first \"npm run test:watch\" \"npm run open:src\" \"npm run lint:watch\"", "open:src": "babel-node tools/srcServer.js", "open:dist": "babel-node tools/distServer.js", "lint": "esw webpack.config.* src tools --color", "lint:watch": "npm run lint -- --watch", "clean-dist": "npm run remove-dist && mkdir dist", "remove-dist": "rimraf ./dist", "prebuild": "npm run lint && npm run clean-dist", "build": "babel-node tools/build.js", "test": "jest -i --env=jsdom --json", "test:CI": "babel-node tools/testCi.js", "test:cover": "npm run test -- --coverage | jest-json-to-tap | tap-xunit > TEST-result.xml ", "test:cover:CI": "npm run test:CI -- --coverage && cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js", "test:watch": "npm run test -- --watch", "open:cover": "npm run test:cover && opn ./coverage/lcov-report/index.html", "analyze-bundle": "babel-node ./tools/analyzeBundle.js" "author": "Me", "license": "MIT", "dependencies": { "@material-ui/core": "3.1.0", "@material-ui/icons": "3.0.1", "cuid": "2.1.4", "normalizr": "3.2.4", "react": "16.5.2", "react-autosuggest": "9.4.2", "react-dom": "16.5.2", "react-redux": "5.0.7", "react-router-dom": "4.2.2", "redux": "3.7.2", "redux-orm": "0.9.4", "redux-thunk": "2.3.0", "reselect": "3.0.1" "devDependencies": { "@babel/cli": "7.0.0", "@babel/core": "7.0.0", "@babel/node": "7.0.0", "@babel/plugin-proposal-class-properties": "7.0.0", "@babel/plugin-transform-react-constant-elements": "7.0.0", "@babel/polyfill": "7.0.0", "@babel/preset-env": "7.0.0", "@babel/preset-react": "7.0.0", "@devexpress/dx-react-core": "1.7.2", "@devexpress/dx-react-grid": "1.7.2", "@devexpress/dx-react-grid-material-ui": "1.7.2", "adal-angular": "1.0.17", "autoprefixer": "9.1.5", "autosuggest-highlight": "3.1.1", "babel-core": "7.0.0-bridge.0", "babel-eslint": "9.0.0", "babel-jest": "23.6.0", "babel-loader": "8.0.2", "babel-plugin-transform-react-constant-elements": "6.23.0", "babel-plugin-transform-react-remove-prop-types": "0.4.18", "browser-sync": "2.24.7", "chalk": "2.4.1", "concurrently": "4.0.1", "connect-history-api-fallback": "1.5.0", "coveralls": "3.0.2", "css-loader": "1.0.0", "enzyme": "3.6.0", "enzyme-adapter-react-16": "1.5.0", "enzyme-to-json": "3.3.4", "eslint": "5.6.0", "eslint-plugin-import": "2.14.0", "eslint-plugin-react": "7.11.1", "eslint-watch": "4.0.2", "file-loader": "2.0.0", "hard-source-webpack-plugin": "0.11.1", "html-webpack-plugin": "3.2.0", "identity-obj-proxy": "3.0.0", "jest": "23.6.0", "jest-cli": "23.6.0", "jest-json-to-tap": "2.1.0", "json-loader": "0.5.7", "lodash": "4.17.11", "material-ui-pickers": "1.0.0-rc.14", "mini-css-extract-plugin": "0.4.2", "mockdate": "2.0.2", "moment": "2.22.2", "node-sass": "4.9.3", "numeral": "2.0.6", "object-hash": "1.3.0", "opn-cli": "3.1.0", "postcss-loader": "3.0.0", "prompt": "1.0.0", "prop-types": "15.6.2", "react-hot-loader": "4.3.11", "react-number-format": "3.6.0", "react-popper": "1.0.2", "react-select": "^2.0.0", "react-test-renderer": "16.5.2", "react-travel": "1.3.6", "react-validation": "3.0.7", "redux-immutable-state-invariant": "2.1.0", "replace": "1.0.0", "rimraf": "2.6.2", "sass-loader": "6.0.6", "style-loader": "0.23.0", "tap-xunit": "2.3.0", "typeface-roboto": "0.0.54", "url-loader": "1.1.1", "uuid": "3.3.2", "validator": "10.7.1", "webpack": "4.19.1", "webpack-bundle-analyzer": "3.0.2", "webpack-dev-middleware": "3.3.0", "webpack-hot-middleware": "2.24.2" "keywords": [], "jest": { "setupFiles": [ "./src/utilities/react16/shim", "./src/utilities/test/jestsetup" "coverageReporters": [ "json", "lcov", "text", "cobertura" "snapshotSerializers": [ "enzyme-to-json/serializer" "moduleNameMapper": { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tools/assetsTransformer.js", "\\.(css|less)$": "<rootDir>/tools/assetsTransformer.js" "babel": { "env": { "development": { "presets": [ "@babel/preset-env", "@babel/preset-react" "plugins": [ "@babel/plugin-proposal-class-properties", "react-hot-loader/babel" "production": { "presets": [ "@babel/preset-env", "targets": { "ie": 9 "forceAllTransforms": true "@babel/preset-react" "plugins": [ "@babel/plugin-proposal-class-properties", "@babel/transform-react-constant-elements", "transform-react-remove-prop-types" "test": { "presets": [ "@babel/preset-env", "@babel/preset-react" "plugins": [ "@babel/plugin-proposal-class-properties" "eslintConfig": { "root": true, "extends": [ "eslint:recommended", "plugin:import/errors", "plugin:import/warnings", "plugin:react/recommended" "plugins": [ "react" "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true, "experimentalObjectRestSpread": true "env": { "es6": true, "browser": true, "node": true, "jquery": true, "jest": true "globals": { "shallow": true, "mount": true, "render": true