在进行desktop打包过程中,遇到如下报错:
看到 stackoverflow 上面 http://stackoverflow.com/questions/35040729/running-npm-install-g-yo-command-gives-npm-err-windows-nt-6-1-7601/35043377#35043377 有这个解决办法:
This is how I solved the issue on Windows 8.1
- Go to your nodejs install (usually C:\Program Files\nodejs)
- Right click node_modules folder and go to properties
- Click the Security tab and advanced
- At the top you will see "Owner: SYSTEM". Click change.
- Enter the user you want permissions for and click ok
- Check the box at the bottom of the advanced settings "Replace all child object permission entries with inheritable permission entries from this object" and click ok
- Do whatever npm install/update you need
(另一个关于electron的问题:http://www.cnblogs.com/haochuang/p/5688093.html)
用该办法尝试,但未解决,再次尝试其他办法;
本文转自 念槐聚 博客园博客,原文链接:http://www.cnblogs.com/haochuang/p/5754120.html,如需转载请自行联系原作者