Closed zajca closed 8 years ago
What version of npm are you experiencing this on?
Well it should be.
$ node -v
v0.10.29
$ npm -v
1.4.21
I deleted some repos and it's starts to work, but it's magic.
Have you tried updating npm? It’s at v3.3 nowadays.
It doesn’t look like it shouldn’t work on node v0.10 (no engines
field).
What's the relation between napa and npm, how is napa depending on npm version?
napa uses the same dependencies as npm – but as far as I know they’re local and they don’t have anything to do with the global npm.
The important thing is how napa constructs the package.json
and where it saves the dependencies after installing. That’s later interpreted by the global npm. See #45 – that was such a problem.
But you’re right – that doesn’t seem to have anything to do with your problem.
@caseyWebb I’m not as deep in the topic as you are. Haven’t I messed something up?
I garner that somehow your your local node_modules file system got corrupted, so simply deleting and reinstalling will solve your problem.
I notice you're running quite old versions of node and npm. Node is currently at 4.1.x, and npm 3.3.x.
You can use nvm or n to easily change your node version (I prefer n), and run npm install -g npm@3
to update npm globally.
Try those, and if you're still able to reproduce the issue, feel free to reopen, but I'm closing for now.
Link: https://github.com/tj/n. I wasn’t aware of n – thanks @caseyWebb!
I getting this error on project and don't know why.
this is what i have in package.json