{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/1200","repository_url":"https://api.github.com/repos/Automattic/node-canvas","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1200/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1200/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1200/events","html_url":"https://github.com/Automattic/node-canvas/issues/1200","id":339581353,"node_id":"MDU6SXNzdWUzMzk1ODEzNTM=","number":1200,"title":"node-pre-gyp Can't find module ../","user":{"login":"Krajiyah","id":10042218,"node_id":"MDQ6VXNlcjEwMDQyMjE4","avatar_url":"https://avatars3.githubusercontent.com/u/10042218?v=4","gravatar_id":"","url":"https://api.github.com/users/Krajiyah","html_url":"https://github.com/Krajiyah","followers_url":"https://api.github.com/users/Krajiyah/followers","following_url":"https://api.github.com/users/Krajiyah/following{/other_user}","gists_url":"https://api.github.com/users/Krajiyah/gists{/gist_id}","starred_url":"https://api.github.com/users/Krajiyah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krajiyah/subscriptions","organizations_url":"https://api.github.com/users/Krajiyah/orgs","repos_url":"https://api.github.com/users/Krajiyah/repos","events_url":"https://api.github.com/users/Krajiyah/events{/privacy}","received_events_url":"https://api.github.com/users/Krajiyah/received_events","type":"User","site_admin":false},"labels":[{"id":60253457,"node_id":"MDU6TGFiZWw2MDI1MzQ1Nw==","url":"https://api.github.com/repos/Automattic/node-canvas/labels/Installation%20help","name":"Installation help","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-09T19:42:20Z","updated_at":"2018-07-17T16:37:12Z","closed_at":null,"author_association":"NONE","body":"## Context\r\nI need the v2 features of font changes for text overlays, so need to use alpha version of this module.\r\n\r\n## Environment\r\n* Version of node-canvas: 2.0.0-alpha.12\r\n* Environment: node 10.1.0, npm 6.0.1, azure linux OS (web app resource)\r\n\r\n## Issue\r\nI am able to install the alpha module locally just fine (npm i canvas@next --save). However, when I am trying to deploy this to my azure web app resource (same node and npm version), I am not able to install canvas. I have ssh'd into the resource and gone through installation steps for an ubuntu/debian OS before I tried to deploy. I have verified that other node modules in my app have installed, its just the canvas module that is giving me issues. \r\n\r\nThis is the error message from the azure deployment:\r\n\r\n```sh\r\nRunning \"/opt/nodejs/10.1.0/bin/node\" \"/opt/npm/6.0.1/node_modules/npm/bin/npm-cli.js\" install --production\r\n\r\n> canvas@2.0.0-alpha.12 install /home/site/wwwroot/node_modules/canvas\r\n> node-pre-gyp install --fallback-to-build\r\nremote: internal/modules/cjs/loader.js:573\r\nremote: \r\nremote:     throw err;\r\nremote:     ^\r\nremote: \r\nremote: Error: Cannot find module '../'\r\nremote:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)\r\nremote:     at Function.Module._load (internal/modules/cjs/loader.js:497:25)\r\nremote:     at Module.require (internal/modules/cjs/loader.js:626:17)\r\nremote:     at require (internal/modules/cjs/helpers.js:20:18)\r\nremote:     at Object.<anonymous> (/home/site/wwwroot/node_modules/node-pre-gyp/bin/node-pre-gyp:15:20)\r\nremote:     at Module._compile (internal/modules/cjs/loader.js:678:30)\r\nremote:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)\r\nremote:     at Module.load (internal/modules/cjs/loader.js:589:32)\r\nremote:     at tryModuleLoad (internal/modules/cjs/loader.js:528:12)\r\nremote:     at Function.Module._load (internal/modules/cjs/loader.js:520:3)\r\n```"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/405647005","html_url":"https://github.com/Automattic/node-canvas/issues/1200#issuecomment-405647005","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1200","id":405647005,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTY0NzAwNQ==","user":{"login":"Rutulpatel7077","id":22271244,"node_id":"MDQ6VXNlcjIyMjcxMjQ0","avatar_url":"https://avatars3.githubusercontent.com/u/22271244?v=4","gravatar_id":"","url":"https://api.github.com/users/Rutulpatel7077","html_url":"https://github.com/Rutulpatel7077","followers_url":"https://api.github.com/users/Rutulpatel7077/followers","following_url":"https://api.github.com/users/Rutulpatel7077/following{/other_user}","gists_url":"https://api.github.com/users/Rutulpatel7077/gists{/gist_id}","starred_url":"https://api.github.com/users/Rutulpatel7077/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rutulpatel7077/subscriptions","organizations_url":"https://api.github.com/users/Rutulpatel7077/orgs","repos_url":"https://api.github.com/users/Rutulpatel7077/repos","events_url":"https://api.github.com/users/Rutulpatel7077/events{/privacy}","received_events_url":"https://api.github.com/users/Rutulpatel7077/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T16:37:12Z","updated_at":"2018-07-17T16:37:12Z","author_association":"NONE","body":"### Here I found the solution is:\r\n**Remove** node_modules\r\n**remove** package-lock.json\r\n**Delete this folder** \"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\"\r\n\r\nRestart your computer.... \r\n\r\n\r\nDo **npm install** \r\n\r\nand then **npm install node-canvas**"}}
{"actor":{"display_login":"Rutulpatel7077"}}