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 [email protected]: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"5.0.0","npm":"3.3.6"})
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] 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 [email protected]
preinstall: [email protected]preinstall: no script for preinstall, continuing127155 silly lifecycle [email protected]
127156 info linkStuff [email protected]
127157 silly linkStuff [email protected] has /Users/xxx/work/meanjs/mean/node_modules/node-inspector/node_modules as its parent node_modules
127158 verbose linkBins [email protected]
127159 verbose linkMans [email protected]
127160 verbose rebuildBundles [email protected]
127161 info lifecycle [email protected]
install: [email protected]install: unsafe-perm in lifecycle true127162 verbose lifecycle [email protected]
127163 verbose lifecycle [email protected]
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 [email protected]
127165 silly lifecycle [email protected]
install: Args: [ '-c', 'node-gyp rebuild' ]install: Returned: code: 1 signal: null127166 silly lifecycle [email protected]
127167 info lifecycle [email protected]~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 [email protected] requires a peer of kerberos@~0.0 but none was installed.
127175 warn EPACKAGEJSON [email protected] No repository field.
127176 verbose stack Error: [email protected] 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 [email protected]
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 [email protected] install:
node-gyp rebuild
127184 error Exit status 1
127185 error Failed at the [email protected] 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: