This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
yo meanjs fail #1054
Labels
Comments
I am having the same issue. Some Google searching directed me to an older version (<2.0.0) of Environment: Error Log:
|
Please post in the generator repo. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I try runing "yo meanjs mean", got error in terminal: (I chose meanjs 0.4.1)
This may take a couple minutes.
Error: Command failed: /bin/sh -c cd mean && npm install
npm WARN engine karma@0.12.37: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"5.0.0","npm":"3.3.6"})
npm WARN prefer global jshint@2.8.0 should be installed with -g
npm WARN prefer global node-gyp@3.0.3 should be installed with -g
npm WARN prefer global nodemon@1.3.8 should be installed with -g
npm WARN prefer global node-inspector@0.10.2 should be installed with -g
In file included from ../src/bufferutil.cc:16:
../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../../nan/nan.h:672:12: error: no matching function for call to 'New'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^~~~~~~~~~~~~~~~~
Some log from npm-debug.log
127150 silly gentlyRm /Users/xxx/work/meanjs/mean/node_modules/.bin/node-inspector is being purged
127151 info build /Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules/bufferutil
127152 verbose gentlyRm don't care about contents; nuking /Users/xxx/work/meanjs/mean/node_modules/.bin/node-debug
127153 verbose gentlyRm don't care about contents; nuking /Users/xxx/work/meanjs/mean/node_modules/.bin/node-inspector
127154 info lifecycle bufferutil@1.1.0
preinstall: bufferutil@1.1.0preinstall: no script for preinstall, continuing127155 silly lifecycle bufferutil@1.1.0
127156 info linkStuff bufferutil@1.1.0
127157 silly linkStuff bufferutil@1.1.0 has /Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules as its parent node_modules
127158 verbose linkBins bufferutil@1.1.0
127159 verbose linkMans bufferutil@1.1.0
127160 verbose rebuildBundles bufferutil@1.1.0
127161 info lifecycle bufferutil@1.1.0
install: bufferutil@1.1.0install: unsafe-perm in lifecycle true127162 verbose lifecycle bufferutil@1.1.0
127163 verbose lifecycle bufferutil@1.1.0
install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules/bufferutil/node_modules/.bin:/Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules/.bin:/Users/xxx/work/meanjs/mean/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbininstall: CWD: /Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules/bufferutil127164 verbose lifecycle bufferutil@1.1.0
127165 silly lifecycle bufferutil@1.1.0
install: Args: [ '-c', 'node-gyp rebuild' ]install: Returned: code: 1 signal: null127166 silly lifecycle bufferutil@1.1.0
127167 info lifecycle bufferutil@1.1.0~install: Failed to exec install script
127168 verbose unlock done using /Users/xxx/.npm/_locks/staging-83821a4febaa2415.lock for /Users/xxx/work/meanjs/mean/node_modules/.staging
127169 silly rollbackFailedOptional Starting
127170 silly rollbackFailedOptional Finishing
127171 silly runTopLevelLifecycles Starting
127172 silly runTopLevelLifecycles Finishing
127173 silly install printInstalled
127174 warn EPEERINVALID mongodb-core@1.2.21 requires a peer of kerberos@~0.0 but none was installed.
127175 warn EPACKAGEJSON mean@0.0.0 No repository field.
127176 verbose stack Error: bufferutil@1.1.0 install:
node-gyp rebuild
127176 verbose stack Exit status 1
127176 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:233:16)
127176 verbose stack at emitTwo (events.js:87:13)
127176 verbose stack at EventEmitter.emit (events.js:172:7)
127176 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
127176 verbose stack at emitTwo (events.js:87:13)
127176 verbose stack at ChildProcess.emit (events.js:172:7)
127176 verbose stack at maybeClose (internal/child_process.js:818:16)
127176 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
127177 verbose pkgid bufferutil@1.1.0
127178 verbose cwd /Users/xxx/work/meanjs/mean
127179 error Darwin 14.5.0
127180 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
127181 error node v5.0.0
127182 error npm v3.3.6
127183 error code ELIFECYCLE
127184 error bufferutil@1.1.0 install:
node-gyp rebuild
127184 error Exit status 1
127185 error Failed at the bufferutil@1.1.0 install script 'node-gyp rebuild'.
127185 error This is most likely a problem with the bufferutil package,
127185 error not with npm itself.
127185 error Tell the author that this fails on your system:
127185 error node-gyp rebuild
127185 error You can get their info via:
127185 error npm owner ls bufferutil
127185 error There is likely additional logging output above.
127186 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: