dominictarr / npmd

MIT License
450 stars 37 forks source link

undefined #5

Closed evbogue closed 10 years ago

evbogue commented 11 years ago

I get the two errors below when I attempt to use npmd.

This works: $ sudo npm install -g npmd

This works: $ npmd --sync

Once sync is over, I can't get npmd to install modules however.

$ npmd install browserify --greedy undefined

fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES, permission denied '/usr/lib/node_modules/npmd/manifest.json' at Object.fs.openSync (fs.js:427:18) at Object.fs.writeFileSync (fs.js:966:15) at EventEmitter. (/usr/lib/node_modules/npmd/index.js:103:8) at EventEmitter.emit (events.js:92:17) at Server. (/usr/lib/node_modules/npmd/node_modules/autonode/index.js:44:19) at Server.g (events.js:175:14) at Server.EventEmitter.emit (events.js:92:17) at net.js:1052:10 at process._tickCallback (node.js:415:13)

I thought maybe this was a permissions problem, so I tried

$ sudo npmd install browserify --greedy browserify@2.22.0 -> /home/venportman/node_modules

/usr/lib/node_modules/npmd/index.js:108 if(err) throw err ^ Error: EXDEV, rename '/tmp/13728129670870.9976843993645161/package'

Any idea what's happening?

dominictarr commented 11 years ago

Ah, yes. that is related to level-manifest. It writes a json file that describes the level api, that a client can connect to. that's checked in, so it doesn't actually need to be written every time. I've update npmd so that it only writes it when manifest config option is provided.

updated npmd@0.4.1, can you try that?

dominictarr commented 10 years ago

this is fixed.