{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10686","labels_url":"https://api.github.com/repos/npm/npm/issues/10686/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10686/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10686/events","html_url":"https://github.com/npm/npm/issues/10686","id":120337456,"number":10686,"title":"Cannot read property 'target' of null","user":{"login":"syuilo","id":4439005,"avatar_url":"https://avatars.githubusercontent.com/u/4439005?v=3","gravatar_id":"","url":"https://api.github.com/users/syuilo","html_url":"https://github.com/syuilo","followers_url":"https://api.github.com/users/syuilo/followers","following_url":"https://api.github.com/users/syuilo/following{/other_user}","gists_url":"https://api.github.com/users/syuilo/gists{/gist_id}","starred_url":"https://api.github.com/users/syuilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syuilo/subscriptions","organizations_url":"https://api.github.com/users/syuilo/orgs","repos_url":"https://api.github.com/users/syuilo/repos","events_url":"https://api.github.com/users/syuilo/events{/privacy}","received_events_url":"https://api.github.com/users/syuilo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/big-bug","name":"big-bug","color":"E2001A"},{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T05:45:57Z","updated_at":"2015-12-04T06:14:27Z","closed_at":null,"body":"``npm install <any package name>`` Then an error occurs.\r\n\r\n```\r\nnpm ERR! Linux 4.2.5-1-ARCH\r\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! node v5.1.1\r\nnpm ERR! npm  v3.5.2\r\n\r\nnpm ERR! Cannot read property 'target' of null\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /var/misskey-web/node_modules/misskey-web/npm-debug.log\r\n```\r\n\r\nFull log here:\r\nhttps://gist.github.com/syuilo/837f61e36657d1e11458\r\n\r\n**error occurs only in the directory that include \"package.json\".**\r\n\r\nexample of my package.json:\r\n```\r\n{\r\n  \"name\": \"misskey-web\",\r\n  \"version\": \"0.0.0\",\r\n  \"description\": \"Misskey Web\",\r\n  \"main\": \"./built/index.js\",\r\n  \"repository\": {\r\n    \"url\": \"https://github.com/MissKernel/Misskey-Web.git\"\r\n  },\r\n  \"scripts\": {\r\n    \"start-production\": \"set NODE_ENV=production node ./built/index.js\",\r\n    \"start\": \"node ./built/index.js\",\r\n    \"dtsm\": \"dtsm --insight false install\",\r\n    \"build\": \"gulp build\",\r\n    \"watch\": \"gulp watch\",\r\n    \"lint\": \"gulp lint\",\r\n    \"clean\": \"gulp clean\",\r\n    \"clean-all\": \"gulp clean-all\",\r\n    \"test\": \"gulp test\"\r\n  },\r\n  \"license\": \"MIT\",\r\n  \"browserify\": {\r\n    \"transform\": [\r\n      \"debowerify\",\r\n      [\r\n        \"jadeify\",\r\n        {\r\n          \"compileDebug\": false,\r\n          \"pretty\": false\r\n        }\r\n      ]\r\n    ]\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-preset-es2015\": \"6.1.18\",\r\n    \"bower\": \"1.6.8\",\r\n    \"browserify\": \"12.0.1\",\r\n    \"debowerify\": \"1.3.1\",\r\n    \"dtsm\": \"0.13.0\",\r\n    \"event-stream\": \"3.3.2\",\r\n    \"glob\": \"6.0.1\",\r\n    \"gulp\": \"3.9.0\",\r\n    \"gulp-babel\": \"6.1.1\",\r\n    \"gulp-less\": \"3.0.5\",\r\n    \"gulp-livescript\": \"2.4.0\",\r\n    \"gulp-minify-css\": \"1.2.1\",\r\n    \"gulp-notify\": \"2.2.0\",\r\n    \"gulp-plumber\": \"1.0.1\",\r\n    \"gulp-tslint\": \"3.6.0\",\r\n    \"gulp-typescript\": \"2.9.2\",\r\n    \"gulp-uglify\": \"1.5.1\",\r\n    \"jadeify\": \"^4.5.0\",\r\n    \"livescript\": \"1.4.0\",\r\n    \"tslint\": \"3.1.1\",\r\n    \"typescript\": \"1.7.3\",\r\n    \"typescript-require\": \"0.2.9-1\",\r\n    \"vinyl-buffer\": \"^1.0.0\",\r\n    \"vinyl-source-stream\": \"1.1.0\"\r\n  },\r\n  \"dependencies\": {\r\n    \"body-parser\": \"1.14.1\",\r\n    \"cheerio-httpcli\": \"0.3.8\",\r\n    \"compression\": \"1.6.0\",\r\n    \"connect-mongo\": \"0.8.2\",\r\n    \"cookie\": \"0.2.3\",\r\n    \"cookie-parser\": \"1.4.0\",\r\n    \"cors\": \"2.7.1\",\r\n    \"escape-html\": \"1.0.3\",\r\n    \"express\": \"4.13.3\",\r\n    \"express-minify\": \"0.1.6\",\r\n    \"express-session\": \"1.12.1\",\r\n    \"gm\": \"1.21.1\",\r\n    \"jade\": \"1.11.0\",\r\n    \"jquery\": \"2.1.4\",\r\n    \"jquery.transit\": \"0.9.12\",\r\n    \"less\": \"2.5.3\",\r\n    \"log-cool\": \"1.0.1\",\r\n    \"marked\": \"0.3.5\",\r\n    \"moment\": \"2.10.6\",\r\n    \"mongoose\": \"4.2.9\",\r\n    \"multer\": \"1.1.0\",\r\n    \"redis\": \"2.4.2\",\r\n    \"request\": \"2.67.0\",\r\n    \"socket.io\": \"1.3.7\",\r\n    \"subdomain\": \"1.2.0\",\r\n    \"three\": \"0.73.0\",\r\n    \"vhost\": \"3.0.2\"\r\n  },\r\n  \"private\": true\r\n}\r\n```\r\n\r\n---\r\n\r\nOS ArchLinux\r\nNode 5.1.1\r\nnpm 3.5.2\r\n\r\n---\r\n\r\nSorry my English. Thanks."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/161886867","html_url":"https://github.com/npm/npm/issues/10686#issuecomment-161886867","issue_url":"https://api.github.com/repos/npm/npm/issues/10686","id":161886867,"user":{"login":"othiym23","id":418097,"avatar_url":"https://avatars.githubusercontent.com/u/418097?v=3","gravatar_id":"","url":"https://api.github.com/users/othiym23","html_url":"https://github.com/othiym23","followers_url":"https://api.github.com/users/othiym23/followers","following_url":"https://api.github.com/users/othiym23/following{/other_user}","gists_url":"https://api.github.com/users/othiym23/gists{/gist_id}","starred_url":"https://api.github.com/users/othiym23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othiym23/subscriptions","organizations_url":"https://api.github.com/users/othiym23/orgs","repos_url":"https://api.github.com/users/othiym23/repos","events_url":"https://api.github.com/users/othiym23/events{/privacy}","received_events_url":"https://api.github.com/users/othiym23/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T06:14:27Z","updated_at":"2015-12-04T06:14:27Z","body":"This is a great bug report – thanks for both the log and the `package.json`. We'll take a look at it very soon!"}}