webstorm react Project error: Error: EPERM: operation not permitted

webstorm imported react on the project, after the execution of npm run start on the error,

> cross-env APP_TYPE=site umi dev

fs.js:114
throw err;
^

Error: EPERM: operation not permitted, open 'path\node_modules\.cache\@babel\register\.babel.7.2.2.development.json'
at Object.openSync (fs.js:443:3)
at Object.writeFileSync (fs.js:1194:35)
at save (path\node_modules\@babel\register\lib\cache.js:52:15)
at process._tickCallback (internal/process/next_tick.js:61:11)
at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `cross-env APP_TYPE=site umi dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! D:\Program Files\nodejs\node_cache\_logs\2019-06-14T07_34_39_651Z-debug.log

Process finished with exit code 1

See the error message is no time to write a file permissions, then look past the path is a hidden file, open look at only one pair of "{}",

Online can be found to the method generally used administrator privileges to run the "command line", this time found useless,

Then make some reference to modify the properties of the entire project folder, add, modify permissions to the current user, useless,

Finally, you can try to look at this .babel.7.2.2.development.json rename the file, add "_bak" suffix, and then go webstorm run it,

At this point you can compile and run a normal,

Guess you like

Origin www.cnblogs.com/1394htw/p/11023629.html