npm / npm

This repository is moving to: https://github.com/npm/cli
http://npm.community
17.54k stars 3.02k forks source link

can't install #3528

Closed isomorphisms closed 11 years ago

isomorphisms commented 11 years ago
npm ERR! System Linux 3.2.0-41-generic
npm ERR! command "node" "/usr/bin/npm" "install" "steam"
npm ERR! cwd /opt
npm ERR! node -v v0.11.2
npm ERR! npm -v 1.1.71
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/npm-debug.log
npm ERR! not ok code 0

0 info it worked if it ends with ok 1 verbose cli [ 'node', '/usr/bin/npm', 'install', 'steam' ] 2 info using npm@1.1.71 3 info using node@v0.11.2 4 verbose read json /opt/package.json 5 verbose read json /opt/node_modules/irc/package.json 6 verbose read json /opt/node_modules/steam/package.json 7 verbose read json /opt/package.json 8 verbose cache add [ 'steam', null ] 9 silly cache add name=undefined spec="steam" args=["steam",null] 10 verbose parsed url { protocol: null, 10 verbose parsed url slashes: null, 10 verbose parsed url auth: null, 10 verbose parsed url host: null, 10 verbose parsed url port: null, 10 verbose parsed url hostname: null, 10 verbose parsed url hash: null, 10 verbose parsed url search: null, 10 verbose parsed url query: null, 10 verbose parsed url pathname: 'steam', 10 verbose parsed url path: 'steam', 10 verbose parsed url href: 'steam' } 11 silly lockFile bf2903b5-steam steam 12 verbose lock steam /home/mars/.npm/bf2903b5-steam.lock 13 silly lockFile bf2903b5-steam steam 14 verbose addNamed [ 'steam', '' ] 15 verbose addNamed [ null, '' ] 16 silly lockFile e3e02841-steam steam@ 17 verbose lock steam@ /home/mars/.npm/e3e02841-steam.lock 18 silly addNameRange { name: 'steam', range: '', hasData: false } 19 verbose url raw steam 20 verbose url resolving [ 'https://registry.npmjs.org/', './steam' ] 21 verbose url resolved https://registry.npmjs.org/steam 22 info trying registry request attempt 1 at 08:43:07 23 verbose etag "5IWS5XCNXTJ19EAEXOTCT3MV4" 24 http GET https://registry.npmjs.org/steam 25 http 304 https://registry.npmjs.org/steam 26 silly registry.get cb [ 304, 26 silly registry.get { server: 'CouchDB/1.3.0 (Erlang OTP/R15B03)', 26 silly registry.get etag: '"5IWS5XCNXTJ19EAEXOTCT3MV4"', 26 silly registry.get date: 'Fri, 07 Jun 2013 12:43:11 GMT', 26 silly registry.get 'content-length': '0' } ] 27 verbose etag steam from cache 28 silly addNameRange number 2 { name: 'steam', range: '', hasData: true } 29 silly addNameRange versions [ 'steam', 29 silly addNameRange [ '0.0.3', 29 silly addNameRange '0.1.0', 29 silly addNameRange '0.1.1', 29 silly addNameRange '0.2.0', 29 silly addNameRange '0.3.0', 29 silly addNameRange '0.3.1', 29 silly addNameRange '0.4.0', 29 silly addNameRange '0.4.1', 29 silly addNameRange '0.4.2', 29 silly addNameRange '0.4.3', 29 silly addNameRange '0.4.4', 29 silly addNameRange '0.4.5', 29 silly addNameRange '0.4.6', 29 silly addNameRange '0.4.7', 29 silly addNameRange '0.4.8', 29 silly addNameRange '0.4.9', 29 silly addNameRange '0.5.0', 29 silly addNameRange '0.5.1', 29 silly addNameRange '0.5.2', 29 silly addNameRange '0.5.3', 29 silly addNameRange '0.5.4', 29 silly addNameRange '0.5.5' ] ] 30 verbose addNamed [ 'steam', '0.5.5' ] 31 verbose addNamed [ '0.5.5', '0.5.5' ] 32 silly lockFile 4a0c201e-steam-0-5-5 steam@0.5.5 33 verbose lock steam@0.5.5 /home/mars/.npm/4a0c201e-steam-0-5-5.lock 34 verbose read json /home/mars/.npm/steam/0.5.5/package/package.json 35 silly lockFile 4a0c201e-steam-0-5-5 steam@0.5.5 36 silly lockFile e3e02841-steam steam@ 37 silly resolved [ { name: 'steam', 37 silly resolved version: '0.5.5', 37 silly resolved description: 'Lets you interface with Steam without running an actual Steam client', 37 silly resolved author: { name: 'Nicholas', email: 'vvnicholas@gmail.com' }, 37 silly resolved main: './lib/steamclient', 37 silly resolved repository: 37 silly resolved { type: 'git', 37 silly resolved url: 'https://github.com/seishun/node-steam.git' }, 37 silly resolved dependencies: { 'adm-zip': '', crc: '', protobuf: '', ref: '', ursa: '' }, 37 silly resolved engines: { node: '0.10.x' }, 37 silly resolved readme: '# Steam for Node.js\n\nThis is a Node.js port of SteamKit2. It lets you interface with Steam without running an actual Steam client. Could be used to run an autonomous chat/trade bot.\n\nThe API is scarce compared to SteamKit2 - however, most chat and trade functions are implemented.\n\n\n# Installation\n\n\nnpm install steam\n\n\n# Usage\nFirst, require this module.\njs\nvar Steam = require(\'steam\');\n\nSteam is now a namespace (implemented as an object) containing the SteamClient class, servers property, and a huge collection of enums (implemented as objects). More on those below.\n\nThen you\'ll want to create an instance of SteamClient, call its logOn method and assign event listeners.\n\njs\nvar bot = new Steam.SteamClient();\nbot.logOn(\'username\', \'password\');\nbot.on(\'loggedOn\', function() { /_ ... _/});\n`\n\nSee example.js for the usage of some of the available API.\n\n# Servers\n\n`Steam.servers` contains the list of CM servers node-steam will attempt to connect to. The bootstrapped list (see [servers.js](https://github.com/seishun/node-steam/blob/master/lib/servers.js)) is not always up-to-date and might contain dead servers. To avoid ETIMEDOUT errors, replace it with your own list before logging in if you have one (see \'servers\' event).\n\n# SteamID\n\nSince JavaScript\'s `Number` type does not have enough precision to store 64-bit integers, SteamIDs are represented as decimal strings. (Just wrap the number in quotes)\n\n# Enums\n\nWhenever a method accepts (or an event provides) an `ESomething`, it\'s a `Number` that represents some enum value. See [steam_language.js](https://github.com/seishun/node-steam/tree/master/lib/generated/steam_language.js) for the whole list of them.\n\nNote that you can\'t easily get the string value from the number, but you probably don\'t need to. You can still use them in conditions (e.g. `if (type == Steam.EChatEntryType.Emote) ...`) or switch statements.\n\n# Properties\n\n## steamID\n\nYour own SteamID.\n\n## users\n\nInformation about users you have encountered. It\'s an object with the following structure:\n\n`js\n{\n "steamID of the user": {\n playerName: "the user\'s current profile name",\n gameName: "the title of the game the user is currently playing"\n // ...and other properties that come directly from Steam\n }\n // ...other users\n}\n`\n\n## chatRooms\n\nInformation about chat rooms you have joined. It\'s an object with the following structure:\n`js\n{\n "steamID of the chat": {\n "steamID of one of the chat\'s current members": {\n rank: "EClanPermission",\n permissions: "a bitset of values from EChatPermission"\n }\n // other members\n }\n // other chats\n}\n\n\nFor example,Object.keys(steamClient.chatRooms[chatID])will return an array of the chat\'s current members, andsteamClient.chatRooms[chatID][memberID].permissions & Steam.EChatPermission.Kick will evaluate to a nonzero value if the specified user is allowed to kick from the specified chat.\n\n# Methods\n\n## logOn(username, password, [sentry], [code])\n\nConnects to Steam and logs you on upon connecting. If your account has Steam Guard enabled, you should provide at least one of the below:\n\n_ sentry - your sentry file hash (see \'sentry\' event).\n* code - the Steam Guard code you\'ll receive by email. If you have previously logged into another account using node-steam, providing the old hash along with the code will allow you to reuse the same hash for multiple accounts.\n\nIf you provide neither, the logon will fail and you\'ll receive an email with the code.\n\n## webLogOn(callback)\n\nLogs into Steam Community. You only need this if you know you do. callback will be called with your new cookie (as a string).\n\nDo not call this before the first webSessionID event, or you\'ll get a broken cookie. Feel free to call this whenever you need to refresh your web session - for example, if you log into the same account from a browser on another computer.\n\n## setPersonaName(name)\n\nChanges your Steam profile name.\n\n## setPersonaState(EPersonaState)\n\nYou\'ll want to call this with EPersonaState.Online upon logon, otherwise you\'ll show up as offline.\n\n## sendMessage(steamID, message, [EChatEntryType])\n\nLast parameter defaults to EChatEntryType.ChatMsg. Another type you might want to use is EChatEntryType.Emote.\n\n## addFriend(steamID)\n\nSends a friend request.\n\n## removeFriend(steamID)\n\nRemoves a friend.\n\n## joinChat(steamID)\n\nJoins the chat room of the specified group. Go to the group\'s Community page, press Ctrl+U and search for "joinchat". Will silently fail if you are not allowed to join.\n\n## kick(chatSteamID, memberSteamID)\n## ban(chatSteamID, memberSteamID)\n## unban(chatSteamID, memberSteamID)\n\nSelf-explanatory.\n\n## trade(steamID)\n\nSends a trade request to the specified user.\n\n## respondToTrade(tradeID, acceptTrade)\n\nSame tradeID as the one passed through the tradeProposed event. acceptTrade should be true or false.\n\n## cancelTrade(steamID)\n\nCancels your proposed trade to the specified user.\n\n# Events\n\n## \'error\'\n* e - an Error object\n\nSomething preventing continued operation of node-steam has occurred. e.cause is a string containing one of these values:\n* \'logonFail\' - can\'t log into Steam. e.eresult is an EResult, the logon response. Some values you might want to handle are InvalidPassword, AlreadyLoggedInElsewhere and AccountLogonDenied (Steam Guard code required).\n* \'loggedOff\' - you were logged off for a reason other than Steam going down. e.eresult is an EResult, most likely LoggedInElsewhere.\n\n## \'loggedOn\'\n\nYou can now safely use all API.\n\n## \'webSessionID\'\n* your new sessionID\n\nIf you are using Steam Community (including trading), you should call webLogOn again, since your current cookie is no longer valid.\n\n## \'sentry\'\n* a Buffer containing your Steam Guard sentry file hash\n\nIf you didn\'t provide a hash when logging in, Steam will send you one through this event. If you have Steam Guard enabled, you should save this and use it for your further logons. It will not expire unlike the code.\n\n## \'servers\'\n* an Array containing the up-to-date server list\n\nnode-steam will use this new list when reconnecting, but it will be lost when your application restarts. You might want to save it to a file or a database and assign it to Steam.servers before logging in next time.\n\nNote that Steam.servers will be automatically updated after this event is emitted. This will be useful if you want to compare the old list with the new one for some reason - otherwise it shouldn\'t matter.\n\n## \'loggedOff\'\n\nYou were logged off from Steam due to it going down. \'disconnected\' should follow immediately afterwards. Wait until it reconnects.\n\n## \'disconnected\'\n\nEither you were disconnected from Steam, or a connection attempt failed. Don\'t use any API now - wait until it reconnects.\n\n## \'chatInvite\'\n* SteamID of the chat you were invited to\n* name of the chat\n* SteamID of the user who invited you\n\n## \'personaState\'\n* Object with new user data\n\nSomeone has gone offline/online, started a game, changed their nickname or something else. The provided object has the same structure as in the users property, and its friendid property contains the user\'s SteamID. Note that the users property is not yet updated when this event is fired, so you can compare the new state with the old one to see what changed.\n\n## \'relationship\'\n* SteamID of the user\n* EFriendRelationship\n\nSome activity in your friend list. For example, EFriendRelationship.PendingInvitee means you got a friend invite, EFriendRelationship.None means you got removed.\n\n## \'friendMsg\'\n* SteamID of the user\n* the message\n* EChatEntryType\n\n## \'chatMsg\'\n* SteamID of the chat room\n* the message\n* EChatEntryType\n* SteamID of the chatter\n\n## \'message\'\nSame arguments as the above two, captures both events. In case of a friend message, the fourth argument will be undefined.\n\n## \'chatStateChange\'\n* EChatMemberStateChange\n* SteamID of the user who entered or left the chat room, disconnected, or was kicked or banned\n* SteamID of the chat where it happened\n* SteamID of the user who kicked or banned\n\nSomething happened in a chat you are in. For example, if the first argument equals Steam.EChatMemberStateChange.Kicked, then someone got kicked.\n\n## \'tradeProposed\'\n* Trade ID\n* SteamID of the user who proposed the trade\n\nYou were offered a trade.\n\n## \'tradeResult\'\n* Trade ID\n* EEconTradeResponse\n* SteamID of the user you sent a trade request\n\nListen for this event if you are the one sending a trade request.\n\n## \'sessionStart\'\n* SteamID of the other party\n\nThe trade is now available at http://steamcommunity.com/trade/{SteamID}. You need a cookie as described in webLoggedOn. You can use node-steam-trade to automate the trade itself.\n\n## \'announcement\'\n* SteamID of the group\n* headline\n\nUse the group\'s RSS feed to get the body of the announcement if you want it.\n', 37 silly resolved readmeFilename: 'README.md', 37 silly resolved _id: 'steam@0.5.5', 37 silly resolved from: 'steam' } ] 38 info install steam@0.5.5 into /opt 39 info installOne steam@0.5.5 40 error TypeError: Arguments to path.resolve must be strings 40 error at Object.exports.resolve (path.js:327:15) 40 error at Object.exports.relative (path.js:388:20) 40 error at installOne (/usr/lib/node_modules/npm/lib/install.js:707:26) 40 error at installOne (/usr/lib/node_modules/npm/lib/install.js:634:3) 40 error at /usr/lib/node_modules/npm/lib/install.js:520:9 40 error at /usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:35 40 error at Array.forEach (native) 40 error at /usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:11 40 error at Array.forEach (native) 40 error at asyncMap (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:53:8) 41 error If you need help, you may report this log at: 41 error http://github.com/isaacs/npm/issues 41 error or email it to: 41 error npm-@googlegroups.com 42 error System Linux 3.2.0-41-generic 43 error command "node" "/usr/bin/npm" "install" "steam" 44 error cwd /opt 45 error node -v v0.11.2 46 error npm -v 1.1.71 47 verbose exit [ 1, true ]

domenic commented 11 years ago

You are somehow using a very old version of npm with a very new unstable version of Node. You need to ugprade your npm, preferably installing the one that comes with Node 0.11.2.