{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/14489","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/14489/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/14489/comments","events_url":"https://api.github.com/repos/npm/npm/issues/14489/events","html_url":"https://github.com/npm/npm/issues/14489","id":186656829,"number":14489,"title":"cannot install @types/react since the name is not found to be valid","user":{"login":"Dierk","id":51843,"avatar_url":"https://avatars.githubusercontent.com/u/51843?v=3","gravatar_id":"","url":"https://api.github.com/users/Dierk","html_url":"https://github.com/Dierk","followers_url":"https://api.github.com/users/Dierk/followers","following_url":"https://api.github.com/users/Dierk/following{/other_user}","gists_url":"https://api.github.com/users/Dierk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dierk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dierk/subscriptions","organizations_url":"https://api.github.com/users/Dierk/orgs","repos_url":"https://api.github.com/users/Dierk/repos","events_url":"https://api.github.com/users/Dierk/events{/privacy}","received_events_url":"https://api.github.com/users/Dierk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-01T21:46:41Z","updated_at":"2016-11-03T00:35:50Z","closed_at":null,"body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [ ] npm is producing an incorrect install.\r\n  - [ ] npm is doing something I don't understand.\r\n  - [x] Other (_see below for feature requests_):\r\n\r\n#### What's going wrong?\r\n\r\nnpm does not install at all with this command when I follow the instructions from\r\nhttps://www.typescriptlang.org/docs/handbook/react-&-webpack.html\r\n\r\n`npm install --save @types/react`\r\n\r\n#### How can the CLI team reproduce the problem?\r\n\r\n`npm install --save @types/react`\r\n\r\nThe respective error message is:\r\n\r\n```\r\nnpm ERR! node v7.0.0\r\nnpm ERR! npm  v3.10.8\r\n\r\nnpm ERR! Invalid name: \"@types/react\"\r\n```\r\n\r\nThe log is:\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'install',\r\n1 verbose cli   '--save',\r\n1 verbose cli   '@types/react' ]\r\n2 info using npm@3.10.8\r\n3 info using node@v7.0.0\r\n4 silly loadCurrentTree Starting\r\n5 silly install loadCurrentTree\r\n6 silly install readLocalPackageData\r\n7 silly fetchPackageMetaData @types/react@0.14.44\r\n8 silly fetchNamedPackageData @types/react\r\n9 silly mapToRegistry name @types/react\r\n10 silly mapToRegistry scope (from package name) @types\r\n11 verbose mapToRegistry no registry URL found in name for scope @types\r\n12 silly mapToRegistry using default registry\r\n13 silly mapToRegistry registry https://registry.npmjs.org/\r\n14 silly mapToRegistry data Result {\r\n14 silly mapToRegistry   raw: '@types/react',\r\n14 silly mapToRegistry   scope: '@types',\r\n14 silly mapToRegistry   escapedName: '@types%2freact',\r\n14 silly mapToRegistry   name: '@types/react',\r\n14 silly mapToRegistry   rawSpec: '',\r\n14 silly mapToRegistry   spec: 'latest',\r\n14 silly mapToRegistry   type: 'tag' }\r\n15 silly mapToRegistry uri https://registry.npmjs.org/@types%2freact\r\n16 verbose request uri https://registry.npmjs.org/@types%2freact\r\n17 verbose request no auth needed\r\n18 info attempt registry request try #1 at 22:43:11\r\n19 verbose request id 544314748c424c56\r\n20 verbose etag \"CURNY4Y3UA0PRGM4X8B3ZP0GW\"\r\n21 http request GET https://registry.npmjs.org/@types%2freact\r\n22 http 304 https://registry.npmjs.org/@types%2freact\r\n23 verbose headers { date: 'Tue, 01 Nov 2016 21:43:11 GMT',\r\n23 verbose headers   via: '1.1 varnish',\r\n23 verbose headers   'cache-control': 'max-age=0',\r\n23 verbose headers   etag: '\"CURNY4Y3UA0PRGM4X8B3ZP0GW\"',\r\n23 verbose headers   age: '0',\r\n23 verbose headers   connection: 'keep-alive',\r\n23 verbose headers   'x-served-by': 'cache-fra1225-FRA',\r\n23 verbose headers   'x-cache': 'MISS',\r\n23 verbose headers   'x-cache-hits': '0',\r\n23 verbose headers   'x-timer': 'S1478036591.903587,VS0,VE754',\r\n23 verbose headers   vary: 'Accept-Encoding' }\r\n24 silly get cb [ 304,\r\n24 silly get   { date: 'Tue, 01 Nov 2016 21:43:11 GMT',\r\n24 silly get     via: '1.1 varnish',\r\n24 silly get     'cache-control': 'max-age=0',\r\n24 silly get     etag: '\"CURNY4Y3UA0PRGM4X8B3ZP0GW\"',\r\n24 silly get     age: '0',\r\n24 silly get     connection: 'keep-alive',\r\n24 silly get     'x-served-by': 'cache-fra1225-FRA',\r\n24 silly get     'x-cache': 'MISS',\r\n24 silly get     'x-cache-hits': '0',\r\n24 silly get     'x-timer': 'S1478036591.903587,VS0,VE754',\r\n24 silly get     vary: 'Accept-Encoding' } ]\r\n25 verbose etag https://registry.npmjs.org/@types%2freact from cache\r\n26 verbose get saving @types/react to /Users/dierkkoenig/.npm/registry.npmjs.org/_40types_252freact/.cache.json\r\n27 verbose correctMkdir /Users/dierkkoenig/.npm correctMkdir not in flight; initializing\r\n28 silly install normalizeTree\r\n29 silly loadCurrentTree Finishing\r\n30 silly loadIdealTree Starting\r\n31 silly install loadIdealTree\r\n32 silly cloneCurrentTree Starting\r\n33 silly install cloneCurrentTreeToIdealTree\r\n34 silly cloneCurrentTree Finishing\r\n35 silly loadShrinkwrap Starting\r\n36 silly install loadShrinkwrap\r\n37 silly loadShrinkwrap Finishing\r\n38 silly loadAllDepsIntoIdealTree Starting\r\n39 silly install loadAllDepsIntoIdealTree\r\n40 silly resolveWithNewModule @types/react@0.14.44 checking installable status\r\n41 silly cache add args [ '@types/react@0.14.44', null ]\r\n42 verbose cache add spec @types/react@0.14.44\r\n43 silly cache add parsed spec Result {\r\n43 silly cache add   raw: '@types/react@0.14.44',\r\n43 silly cache add   scope: '@types',\r\n43 silly cache add   escapedName: '@types%2freact',\r\n43 silly cache add   name: '@types/react',\r\n43 silly cache add   rawSpec: '0.14.44',\r\n43 silly cache add   spec: '0.14.44',\r\n43 silly cache add   type: 'version' }\r\n44 silly addNamed @types/react@0.14.44\r\n45 verbose addNamed \"0.14.44\" is a plain semver version for @types/react\r\n46 silly mapToRegistry name @types/react\r\n47 silly mapToRegistry scope (from package name) @types\r\n48 verbose mapToRegistry no registry URL found in name for scope @types\r\n49 silly mapToRegistry using default registry\r\n50 silly mapToRegistry registry https://registry.npmjs.org/\r\n51 silly mapToRegistry data Result {\r\n51 silly mapToRegistry   raw: '@types/react',\r\n51 silly mapToRegistry   scope: '@types',\r\n51 silly mapToRegistry   escapedName: '@types%2freact',\r\n51 silly mapToRegistry   name: '@types/react',\r\n51 silly mapToRegistry   rawSpec: '',\r\n51 silly mapToRegistry   spec: 'latest',\r\n51 silly mapToRegistry   type: 'tag' }\r\n52 silly mapToRegistry uri https://registry.npmjs.org/@types%2freact\r\n53 verbose addNameVersion registry:https://registry.npmjs.org/@types%2freact not in flight; fetching\r\n54 verbose get https://registry.npmjs.org/@types%2freact not expired, no request\r\n55 silly rollbackFailedOptional Starting\r\n56 silly rollbackFailedOptional Finishing\r\n57 silly runTopLevelLifecycles Finishing\r\n58 silly install printInstalled\r\n59 verbose stack Error: Invalid name: \"@types/react\"\r\n59 verbose stack     at ensureValidName (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:284:15)\r\n59 verbose stack     at Object.fixNameField (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:199:5)\r\n59 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:29:38\r\n59 verbose stack     at Array.forEach (native)\r\n59 verbose stack     at normalize (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:28:15)\r\n59 verbose stack     at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:349:5)\r\n59 verbose stack     at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:124:5)\r\n59 verbose stack     at ReadFileContext.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:295:20)\r\n59 verbose stack     at ReadFileContext.callback (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16)\r\n59 verbose stack     at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:335:13)\r\n60 verbose cwd /projects/git/tryReactTs\r\n61 error Darwin 16.1.0\r\n62 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"--save\" \"@types/react\"\r\n63 error node v7.0.0\r\n64 error npm  v3.10.8\r\n65 error Invalid name: \"@types/react\"\r\n66 error If you need help, you may report this error at:\r\n66 error     <https://github.com/npm/npm/issues>\r\n67 verbose exit [ 1, true ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/258040586","html_url":"https://github.com/npm/npm/issues/14489#issuecomment-258040586","issue_url":"https://api.github.com/repos/npm/npm/issues/14489","id":258040586,"user":{"login":"legodude17","id":11205096,"avatar_url":"https://avatars.githubusercontent.com/u/11205096?v=3","gravatar_id":"","url":"https://api.github.com/users/legodude17","html_url":"https://github.com/legodude17","followers_url":"https://api.github.com/users/legodude17/followers","following_url":"https://api.github.com/users/legodude17/following{/other_user}","gists_url":"https://api.github.com/users/legodude17/gists{/gist_id}","starred_url":"https://api.github.com/users/legodude17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legodude17/subscriptions","organizations_url":"https://api.github.com/users/legodude17/orgs","repos_url":"https://api.github.com/users/legodude17/repos","events_url":"https://api.github.com/users/legodude17/events{/privacy}","received_events_url":"https://api.github.com/users/legodude17/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T00:35:50Z","updated_at":"2016-11-03T00:35:50Z","body":"I am using OSX El Capitan. It probably has to do with `npm@3.10`. Will try with that version."}}
{"actor":{"display_login":"legodude17"}}