browser-laptop 浏览器编译出错
npm WARN optional Skipping failed optional dependency //electron-installer-debian: npm WARN notsup Not compatible with your operating system or architecture: electron-installer-debian@0.3.0 npm WARN optional Skipping failed optional dependency //electron-installer-redhat: npm WARN notsup Not compatible with your operating system or architecture: electron-installer-redhat@0.2.0 npm WARN optional Skipping failed optional dependency /electron-builder/appdmg: npm WARN notsup Not compatible with your operating system or architecture: appdmg@0.3.10 npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12 npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v6.2.0 npm ERR! npm v3.8.9 npm ERR! code ELIFECYCLE npm ERR! pre-commit@1.1.2 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pre-commit@1.1.2 install script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the pre-commit package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs pre-commit npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls pre-commit npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\test2\browser-laptop\npm-debug.log
解决方案
- Go to your package.json
- Remove the line
"pre-commit": "brave/pre-commit",
- Remove your node_modules directory
- Re-run
npm install