Open mr-chen-king opened 3 years ago
很多这种错误,版本不对吗?
{ "version": "1.0.0", "name": "my-electron", "main": "app/index.js", "scripts": { "test": "", "build": "rimraf app/dist && webpack --config build/webpack.prod.js", "dev": "node build/server.js", "app": "cross-env NODE_ENV=development electron app/", "lint": "xo /client//.{vue,js} /app//.js !node_modules/**", "package:mac": "rimraf package && electron-packager . TEST --platform=darwin --arch=x64 --overwrite --icon=hosts.icns --out=./package --electron-version=1.6.11 --ignore=\"(build|client$|static|theme|.gitignore|LICENSE|README.md|.editorconfig|.eslintrc|node_modules|gruntPackage.json|Gruntfile.js|yarn.lock|socket|package_dir|git_img)\"", "package:win": "rimraf package && electron-packager . TEST --platform=win32 --arch=x64 --overwrite --icon=hosts.ico --out=./package --electron-version=1.6.11 --version-string.CompanyName=TEST --version-string.ProductName=TEST --ignore=\"(build|client$|static|theme|.gitignore|LICENSE|README.md|.editorconfig|.eslintrc|node_modules|gruntPackage.json|Gruntfile.js|yarn.lock|socket|package_dir|git_img)\"", "package:linux": "electron-packager . TEST --platform=linux --arch=x64 --overwrite --out=/package --electron-version=1.6.11 --asar --ignore=\"(build|client|static|theme|.gitignore|LICENSE|README.md|.editorconfig|.eslintrc|node_modules|gruntPackage.json|Gruntfile.js|yarn.lock|socket|package_dir|git_img)\"", "package": "npm run packageDarwin && npm run packageWin && npm run packageLinux", "setup": "rimraf package_dir && grunt", "socket": "node socket/server.js" }, "license": "MIT", "productName": "my-electron", "description": "My Superb Vue Project For Electron", "author": "xiaobinwu xiaobin_wu@yahoo.com", "xo": { "extends": "./.eslintrc", "esnext": true, "envs": [ "browser" ] }, "babel": { "presets": [ [ "vue-app", { "useBuiltIns": true } ] ], "plugins": [ [ "component", [ { "libraryName": "element-ui", "styleLibraryName": "~theme" } ] ] ] }, "postcss": { "plugins": { "autoprefixer": {}, "postcss-nested": {} } }, "browserslist": [ "last 2 versions", "ie > 8" ], "dependencies": { "babel-runtime": "^6.18.0", "element-ui": "^1.3.7", "promise-polyfill": "^6.0.2", "vue": "^2.2.0", "vue-router": "^2.0.0", "vuex": "^2.0.0", "vuex-router-sync": "^4.0.0" }, "devDependencies": { "autoprefixer": "^6.4.0", "axios": "^0.16.2", "babel-core": "^6.16.0", "babel-loader": "^6.2.4", "babel-plugin-component": "^0.9.1", "babel-preset-vue-app": "^1.1.1", "bluebird": "^3.5.0", "body-parser": "^1.17.2", "chalk": "^1.1.3", "copy-webpack-plugin": "^4.0.1", "cross-env": "^2.0.0", "css-loader": "^0.23.1", "electron": "^1.4.2", "electron-devtools-installer": "^2.0.1", "electron-packager": "^8.7.1", "electron-squirrel-startup": "^1.0.0", "eslint": "^3.19.0", "eslint-config-vue": "latest", "eslint-plugin-vue": "latest", "express": "^4.14.0", "extract-text-webpack-plugin": "^2.0.0-rc.3", "file-loader": "^0.9.0", "file-saver": "^1.3.3", "friendly-errors-webpack-plugin": "^1.1.2", "grunt": "^1.0.1", "grunt-electron-installer": "^2.1.0", "html-webpack-plugin": "^2.22.0", "node-sass": "^4.5.3", "offline-plugin": "^4.5.3", "postcss-loader": "^0.9.1", "postcss-nested": "^1.0.0", "rimraf": "^2.6.1", "sass": "^1.0.0-beta.1", "sass-loader": "^6.0.6", "socket.io-client": "^2.0.3", "style-loader": "^0.13.1", "url-loader": "^0.5.9", "vue-i18n": "^7.1.1", "vue-loader": "^14.2.0", "vue-style-loader": "^3.0.1", "vue-template-compiler": "^2.3.4", "webpack": "2.2.0", "webpack-dev-middleware": "^1.8.1", "webpack-hot-middleware": "^2.12.2", "xlsx": "^0.11.1", "xo": "^0.18.0" } }
error in ./~/_ws@7.4.4@ws/lib/websocket-server.js
@ ./~/_ws@7.4.4@ws/index.js 6:19-52 @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/websocket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/index.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/socket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/index.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/manager.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/index.js @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@14.2.4@vue-loader/lib/selector.js?type=script&index=0!./client/components/App.vue @ ./client/components/App.vue @ ./client/app.js @ ./client/index.js @ multi webpack-hot-middleware/client?reload=true&path=http://localhost:4000/__webpack_hmr ./client/index.js
error in ./~/_ws@7.4.4@ws/lib/websocket.js
@ ./~/_ws@7.4.4@ws/index.js 3:18-44 @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/websocket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/index.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/socket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/index.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/manager.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/index.js @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@14.2.4@vue-loader/lib/selector.js?type=script&index=0!./client/components/App.vue @ ./client/components/App.vue @ ./client/app.js @ ./client/index.js @ multi webpack-hot-middleware/client?reload=true&path=http://localhost:4000/__webpack_hmr ./client/index.js
error in ./~/_ws@7.4.4@ws/lib/permessage-deflate.js
Module parse failed: D:\workspace\Plus\node_modules_ws@7.4.4@ws\lib\permessage-deflate.js Unexpected token (349:8) You may need an appropriate loader to handle this file type. | | this._inflate = zlib.createInflateRaw({ | ...this._options.zlibInflateOptions, | windowBits | });
@ ./~/_ws@7.4.4@ws/lib/sender.js 5:26-57 @ ./~/_ws@7.4.4@ws/index.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/websocket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/transports/index.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/socket.js @ ./~/_engine.io-client@3.5.1@engine.io-client/lib/index.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/manager.js @ ./~/_socket.io-client@2.4.0@socket.io-client/lib/index.js @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@14.2.4@vue-loader/lib/selector.js?type=script&index=0!./client/components/App.vue @ ./client/components/App.vue @ ./client/app.js