{"action":"created","issue":{"url":"https://api.github.com/repos/posva/vue-plugin-template/issues/3","repository_url":"https://api.github.com/repos/posva/vue-plugin-template","labels_url":"https://api.github.com/repos/posva/vue-plugin-template/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/posva/vue-plugin-template/issues/3/comments","events_url":"https://api.github.com/repos/posva/vue-plugin-template/issues/3/events","html_url":"https://github.com/posva/vue-plugin-template/issues/3","id":222539050,"number":3,"title":"npm install not working","user":{"login":"lucafaggianelli","id":4471043,"avatar_url":"https://avatars1.githubusercontent.com/u/4471043?v=3","gravatar_id":"","url":"https://api.github.com/users/lucafaggianelli","html_url":"https://github.com/lucafaggianelli","followers_url":"https://api.github.com/users/lucafaggianelli/followers","following_url":"https://api.github.com/users/lucafaggianelli/following{/other_user}","gists_url":"https://api.github.com/users/lucafaggianelli/gists{/gist_id}","starred_url":"https://api.github.com/users/lucafaggianelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucafaggianelli/subscriptions","organizations_url":"https://api.github.com/users/lucafaggianelli/orgs","repos_url":"https://api.github.com/users/lucafaggianelli/repos","events_url":"https://api.github.com/users/lucafaggianelli/events{/privacy}","received_events_url":"https://api.github.com/users/lucafaggianelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-18T20:40:17Z","updated_at":"2017-04-18T20:42:59Z","closed_at":null,"body":"Hi,\r\n\r\nI got some issues when i try to `npm install` the vue plugin into the vue app, it fails in the postinstall script:\r\n\r\n```\r\n> yon run build:dll\r\n\r\n\r\n> vue-adminlte@0.0.1 build:dll /home/luca/dev/projects-atlas/node_modules/vue-adminlte\r\n> ls /home/luca/dev/projects-atlas/node_modules/vue-adminlte ; webpack --progress --config build/webpack.config.dll.js\r\n\r\ndist  LICENSE  package.json  README.md\tsrc\r\nmodule.js:471\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '/home/luca/dev/projects-atlas/node_modules/vue-adminlte/build/webpack.config.dll.js'\r\n    at Function.Module._resolveFilename (module.js:469:15)\r\n    at Function.Module._load (module.js:417:25)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at module.exports (/home/luca/dev/projects-atlas/node_modules/webpack/bin/convert-argv.js:80:13)\r\n    at Object.<anonymous> (/home/luca/dev/projects-atlas/node_modules/webpack/bin/webpack.js:39:40)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n\r\n```\r\n\r\nIt seems that build/ folder is not copied in node_modules, so I added it in plugin package.json:\r\n```\r\n  \"files\": [\r\n    \"build\",\r\n    \"dist\",\r\n    \"src\"\r\n  ],\r\n```\r\nThe above solves the missing build/ directory, though I have another issue for missing webpack plugins, notice that I don't have these plugins in the vue app from where i'm running `npm install my-vue-plugin`\r\n```\r\nERROR in dll vuePluginTemplateDeps\r\nModule not found: Error: Cannot resolve module 'style-loader' in /home/luca/dev/projects-atlas/node_modules/vue-adminlte\r\n @ dll vuePluginTemplateDeps\r\n\r\nERROR in dll vuePluginTemplateDeps\r\nModule not found: Error: Cannot resolve module 'style-loader/addStyles.js' in /home/luca/dev/projects-atlas/node_modules/vue-adminlte\r\n @ dll vuePluginTemplateDeps\r\n\r\nERROR in dll vuePluginTemplateDeps\r\nModule not found: Error: Cannot resolve module 'sockjs-client' in /home/luca/dev/projects-atlas/node_modules/vue-adminlte\r\n @ dll vuePluginTemplateDeps\r\n\r\nERROR in dll vuePluginTemplateDeps\r\nModule not found: Error: Cannot resolve module 'vue-style-loader/lib/addStylesClient.js' in /home/luca/dev/projects-atlas/node_modules/vue-adminlte\r\n @ dll vuePluginTemplateDeps\r\n```\r\n\r\nany hint?\r\n\r\nThanks\r\nLuca"},"comment":{"url":"https://api.github.com/repos/posva/vue-plugin-template/issues/comments/294975709","html_url":"https://github.com/posva/vue-plugin-template/issues/3#issuecomment-294975709","issue_url":"https://api.github.com/repos/posva/vue-plugin-template/issues/3","id":294975709,"user":{"login":"posva","id":664177,"avatar_url":"https://avatars3.githubusercontent.com/u/664177?v=3","gravatar_id":"","url":"https://api.github.com/users/posva","html_url":"https://github.com/posva","followers_url":"https://api.github.com/users/posva/followers","following_url":"https://api.github.com/users/posva/following{/other_user}","gists_url":"https://api.github.com/users/posva/gists{/gist_id}","starred_url":"https://api.github.com/users/posva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posva/subscriptions","organizations_url":"https://api.github.com/users/posva/orgs","repos_url":"https://api.github.com/users/posva/repos","events_url":"https://api.github.com/users/posva/events{/privacy}","received_events_url":"https://api.github.com/users/posva/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T20:42:59Z","updated_at":"2017-04-18T20:42:59Z","body":"Oh, I thought I fixed that, remove this line from your package.json and republish: https://github.com/posva/vue-plugin-template/blob/master/template/package.json#L27"}}
{"actor":{"display_login":"posva"}}