Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

attempt to workaround mapbox/node-pre-gyp#67

  • Loading branch information...
commit 1434317d3fcd92c836ae0e1140e36c66e69040b9 1 parent e892410
@springmeyer springmeyer authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  package.json
View
1  package.json
@@ -59,6 +59,7 @@
"topcube": "~0.2.0"
},
"scripts": {
+ "preinstall":"npm install npm",
"start": "./index.js",
"test": "mocha --timeout 100000",
"postinstall": "node ./lib/gitutil.js"

2 comments on commit 1434317

@uniphil

Just FYI -- this commit breaks the archlinux git package for tilemill. I don't know much about nodejs or about archlinux pkgbuild scripts -- I am sure it can/should be fixed over there so feel free to ignore me :). In case it is useful or interesting here is what I found:

The reason it fails is that I already have npm installed through nodejs, and the package nodejs "owns" all of npm's files. If I install another package (tilemill) that tries to overwrite npm's files, the package manager won't let me.

@springmeyer

@uniphil - thanks for the report. Can you surface this problem as a new issue on its own and share the exact errors and console output you saw? What you describe makes me think that somehow the npm install npm is causing the new npm to be installed somewhere outside of the TileMill local node_modules which should not be happening. All this preinstall target is intended to do is install npm in tilemill/node_modules/npm, which was already happening before just at the install target: this changes it to happen sooner.

Please sign in to comment.
Something went wrong with that request. Please try again.