ME$ mean init app
? What would you name your mean app? app
/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:579
throw e;
^
TypeError: undefined is not a function
at Object.exports.checkNpmPermission (/usr/local/lib/node_modules/mean-cli/lib/utils.js:70:3)
at Array.checkPermissions (/usr/local/lib/node_modules/mean-cli/lib/install.js:36:11)
at handleItem (/usr/local/lib/node_modules/mean-cli/node_modules/async-series/index.js:14:13)
at series (/usr/local/lib/node_modules/mean-cli/node_modules/async-series/index.js:30:3)
at Object.exports.init (/usr/local/lib/node_modules/mean-cli/lib/install.js:14:3)
at exports.init (/usr/local/lib/node_modules/mean-cli/lib/cli.js:836:11)
at PromptUI.completed (/usr/local/lib/node_modules/mean-cli/lib/wizard.js:43:5)
at PromptUI.onCompletion (/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/lib/ui/prompt.js:69:10)
at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:1977:12)
at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:1914:14)
ME$
I do not know how to troubleshoot this.
Further Details
OS:Yosemite
prerequisite Install:$ npm install -g mean-cli
It seems you are having some permission issues with the "npm".Did you install the mean using "npm install -g mean-cli" ?.
Related
Maybe someone faced such a problem? I tried to change versions of the compiler, after changing 1 time it accumulates without errors, it crashes again with the same error. Tried 0.64.0, 0.63.0, 0.62.0, 0.61.0, On the last one instead of "[ERROR] undefined" returned "[ERROR] Error: 1". What is the problem?
At the same time, everything passes through ""everdev sol compile"" norms. I don’t really want to switch from locklift, but got stuck due to a mistake.
Thanks!
npx locklift init --path amazing-everscale-project
cd amazing-everscale-project
npm install --save-dev everdev
npx everdev sol set --compiler 0.64.0 --linker 0.18.4
Update locklift.config.ts
const config: LockliftConfig = {
compiler: {
path: "~/.everdev/solidity/solc",
},
linker: {
lib: "~/.everdev/solidity/stdlib_sol.tvm",
path: "~/.everdev/solidity/tvm_linker",
},
...
build
npx locklift build
What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
[CXX1405] error when building with cmake using D:\Practice\GmmcoProject\node_modules\react-native-reanimated\android\CMakeLists.txt: Build command failed.
Error while executing process C:\Users\CIPL1279\AppData\Local\Android\Sdk\cmake\3.18.1\bin\cmake.exe with arguments {-HD:\Practice\GmmcoProject\node_modules\react-native-reanimated\android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=21 -DANDROID_PLATFORM=android-21 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=C:\Users\CIPL1279\AppData\Local\Android\Sdk\ndk\21.4.7075529 -DCMAKE_ANDROID_NDK=C:\Users\CIPL1279\AppData\Local\Android\Sdk\ndk\21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=C:\Users\CIPL1279\AppData\Local\Android\Sdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\CIPL1279\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe -DCMAKE_CXX_FLAGS=-fstack-protector-all -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Practice\GmmcoProject\node_modules\react-native-reanimated\android\build\intermediates\cxx\Debug\695xx5w3\obj\arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\Practice\GmmcoProject\node_modules\react-native-reanimated\android\build\intermediates\cxx\Debug\695xx5w3\obj\arm64-v8a -DCMAKE_BUILD_TYPE=Debug -BD:\Practice\GmmcoProject\node_modules\react-native-reanimated\android.cxx\Debug\695xx5w3\arm64-v8a -GNinja -DANDROID_STL=c++_shared -DNATIVE_DEBUG=false -DREACT_NATIVE_TARGET_VERSION=70 -DANDROID_TOOLCHAIN=clang -DBOOST_VERSION=1_76_0 -DNODE_MODULES_DIR=D:\Practice\GmmcoProject\node_modules -DJS_RUNTIME=hermes -DJS_RUNTIME_DIR=D:\Practice\GmmcoProject\node_modules\react-native\sdks\hermes -DCLIENT_SIDE_BUILD=true -DIS_NEW_ARCHITECTURE_ENABLED=false -DPLAYGROUND_APP_NAME=D:\Practice\GmmcoProject\android\app -DRNVERSION=70}
Try to reinstall the reanimated version.
npm uninstall react-native-reanimated
npm install react-native-reanimated#2.9.1
I'm new to Loopback, was following this page here: https://docs.strongloop.com/display/public/LB/REST+connector
$ npm install loopback-connector-rest --save
$ slc loopback:datasource
? Enter the data-source name: testrestDS
? Select the connector ...
> REST Services (supported by StrongLoop)
And then I get this error:
events.js:154
throw er; // Unhandled 'error' event
^
TypeError: Cannot set property 'facetName' of undefined
at exports._extend (util.js:770:21)
at module.exports.yeoman.generators.Base.extend.dataSource (/usr/lib/node_modules/strongloop/node_modules/generator-loopback/datasource/index.js:169:18)
at /usr/lib/node_modules/strongloop/node_modules/yeoman-generator/lib/base.js:430:16
at processImmediate [as _immediateCallback] (timers.js:383:17)
I've tried a couple other connector types in the generator and they work (like Mongo even though I don't have that connector installed).
Ubuntu 14.04 64-bit
node v5.7.1
npm v3.6.0
slc v6.0.0
loopback v2.27.0
loopback-connector-rest v1.10.2
I got the same error on my command line, but not in my Docker container based on the strongloop/node image.
In both cases strongloop v6.0.0 but on different versions of node (v0.10.25 versus v0.10.38 in the Docker container) with a different version of generator-loopback (1.16.2 versus 1.20.5 in the Docker container).
I suspect that you need to upgrade to resolve this issue.
jspm init results in:
Package.json file does not exist, create it? [yes]:
err Error: EINVAL, invalid argument
at new Socket (net.js:157:18)
at process.stdin (node.js:687:19)
at MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:202:12
at lib$rsvp$$internal$$initializePromise (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\rsvp\dist\rsvp.js:1084:9)
at new lib$rsvp$promise$$Promise (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\rsvp\dist\rsvp.js:546:53)
at Object.exports.input (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:190:10)
at Object.exports.confirm (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:157:15)
at Promise.resolve.then.then.config.pjsonPath (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\config.js:70:17)
at tryCatchReject (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1183:30)
at runContinuation1 (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1142:4)
at Fulfilled.when (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:930:4)
at ContinuationTask.run (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1040:24)
at Scheduler._drain (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:97:19)
at Scheduler.drain (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:62:9)
at process._tickCallback (node.js:442:13)
at Function.Module.runMain (module.js:499:11)
Could be related to this: https://github.com/jspm/jspm-cli/issues/610
Looks like this issue could be related to my cygwin installation: Node.js Cygwin not supported
Maybe it cannot enter the interactive prompt.
Using jspm init -y worked but it is not mentioned in most tutorials.
I have studied the document http://code.google.com/a/apache-extras.org/p/cassandra-pdo/source/browse/README.md. When I build config.m4 I get this error:
./config.m4: line 1: syntax error near unexpected token `pdo-cassandra,'
./config.m4: line 1: `PHP_ARG_WITH(pdo-cassandra, whether to enable PDO cassandra support,'
Why? Should I use another parser to read config.m4?
These steps work for me on Ubuntu:
apt-get install libboost-all-dev php5-dev libpcre3-dev pkg-config libthrift-dev
phpize
./configure
make
make install
I'll get the docs updated to include these steps. Hopefully we can put together some binary packages some time soon.