{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8927","labels_url":"https://api.github.com/repos/npm/npm/issues/8927/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8927/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8927/events","html_url":"https://github.com/npm/npm/issues/8927","id":94745166,"number":8927,"title":"invalid name \"@mozilla/raptor\" when using npm link","user":{"login":"eliperelman","id":285899,"avatar_url":"https://avatars.githubusercontent.com/u/285899?v=3","gravatar_id":"","url":"https://api.github.com/users/eliperelman","html_url":"https://github.com/eliperelman","followers_url":"https://api.github.com/users/eliperelman/followers","following_url":"https://api.github.com/users/eliperelman/following{/other_user}","gists_url":"https://api.github.com/users/eliperelman/gists{/gist_id}","starred_url":"https://api.github.com/users/eliperelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliperelman/subscriptions","organizations_url":"https://api.github.com/users/eliperelman/orgs","repos_url":"https://api.github.com/users/eliperelman/repos","events_url":"https://api.github.com/users/eliperelman/events{/privacy}","received_events_url":"https://api.github.com/users/eliperelman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"},{"url":"https://api.github.com/repos/npm/npm/labels/patch-welcome","name":"patch-welcome","color":"e102d8"},{"url":"https://api.github.com/repos/npm/npm/labels/scopes","name":"scopes","color":"f34c1c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-13T15:18:02Z","updated_at":"2015-07-15T15:01:26Z","closed_at":null,"body":"Trying to `npm link` from a git repo which defines a scoped npm package. Error ensues:\r\n\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'link' ]\r\n2 info using npm@2.11.3\r\n3 info using node@v0.12.7\r\n4 verbose stack Error: Invalid name: \"@mozilla/raptor\"\r\n4 verbose stack     at ensureValidName (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:300:15)\r\n4 verbose stack     at Object.module.exports.fixNameField (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:204:5)\r\n4 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:30:38\r\n4 verbose stack     at Array.forEach (native)\r\n4 verbose stack     at normalize (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:29:15)\r\n4 verbose stack     at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:338:5)\r\n4 verbose stack     at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:113:5)\r\n4 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:300:12\r\n4 verbose stack     at evalmachine.<anonymous>:334:14\r\n4 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:102:5\r\n5 verbose cwd /home/rwood/mozilla-raptor\r\n6 error Linux 3.13.0-46-generic\r\n7 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"link\"\r\n8 error node v0.12.7\r\n9 error npm  v2.11.3\r\n10 error Invalid name: \"@mozilla/raptor\"\r\n11 error If you need help, you may report this error at:\r\n11 error     <https://github.com/npm/npm/issues>\r\n12 verbose exit [ 1, true ]\r\n```\r\n\r\nThe package.json:\r\n\r\n```json\r\n{\r\n  \"name\": \"@mozilla/raptor\",\r\n  \"version\": \"1.0.0-beta1\",\r\n  \"preferGlobal\": true,\r\n  \"description\": \"CLI tool for Firefox OS Gaia performance tests\",\r\n  \"keywords\": [\r\n    \"testing\",\r\n    \"firefox-os\",\r\n    \"gaia\",\r\n    \"performance\",\r\n    \"b2g\",\r\n    \"cli\"\r\n  ],\r\n  \"main\": \"index.js\",\r\n  \"author\": {\r\n    \"name\": \"Eli Perelman\",\r\n    \"email\": \"eli@eliperelman.com\"\r\n  },\r\n  \"bin\": {\r\n    \"raptor\": \"./bin/raptor\"\r\n  },\r\n  \"devDependencies\": {},\r\n  \"dependencies\": {\r\n    \"byline\": \"^4.2.1\",\r\n    \"cli-table\": \"^0.3.1\",\r\n    \"commander\": \"^2.8.1\",\r\n    \"debug\": \"^2.2.0\",\r\n    \"deepmerge\": \"^0.2.10\",\r\n    \"influx\": \"^3.0.0\",\r\n    \"marionette-apps\": \"^0.3.13\",\r\n    \"marionette-client\": \"^1.7.6\",\r\n    \"marionette-content-script\": \"^0.0.4\",\r\n    \"marionette-file-manager\": \"^0.0.4\",\r\n    \"marionette-helper\": \"^0.3.1\",\r\n    \"marionette-plugin-forms\": \"^0.0.4\",\r\n    \"marionette-settings-api\": \"^0.1.0\",\r\n    \"promise\": \"^6.1.0\",\r\n    \"sax\": \"^1.1.1\",\r\n    \"stats-lite\": \"^1.0.3\",\r\n    \"temp\": \"^0.8.3\",\r\n    \"unzip\": \"^0.1.11\",\r\n    \"validator\": \"^3.40.1\",\r\n    \"xregexp\": \"^2.0.0\"\r\n  },\r\n  \"scripts\": {},\r\n  \"maintainers\": [\r\n    {\r\n      \"name\": \"eliperelman\",\r\n      \"email\": \"eli@eliperelman.com\"\r\n    },\r\n    {\r\n      \"name\": \"rwood-moz\",\r\n      \"email\": \"rwood@mozilla.com\"\r\n    }\r\n  ],\r\n  \"directories\": {}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/121644369","html_url":"https://github.com/npm/npm/issues/8927#issuecomment-121644369","issue_url":"https://api.github.com/repos/npm/npm/issues/8927","id":121644369,"user":{"login":"eliperelman","id":285899,"avatar_url":"https://avatars.githubusercontent.com/u/285899?v=3","gravatar_id":"","url":"https://api.github.com/users/eliperelman","html_url":"https://github.com/eliperelman","followers_url":"https://api.github.com/users/eliperelman/followers","following_url":"https://api.github.com/users/eliperelman/following{/other_user}","gists_url":"https://api.github.com/users/eliperelman/gists{/gist_id}","starred_url":"https://api.github.com/users/eliperelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliperelman/subscriptions","organizations_url":"https://api.github.com/users/eliperelman/orgs","repos_url":"https://api.github.com/users/eliperelman/repos","events_url":"https://api.github.com/users/eliperelman/events{/privacy}","received_events_url":"https://api.github.com/users/eliperelman/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T15:01:26Z","updated_at":"2015-07-15T15:01:26Z","body":"@cchamberlain shouldn't need credentials when only doing an `npm link` on a local package, right?"}}