When I run the following:
ng new --collection=#nativescript/schematics myProject --shared
It does not work. I have installed the schematic and everything according to the docs but that command does nothing. Any ideas?
I have followed the documentation here:
https://docs.nativescript.org/angular/code-sharing/creating-a-new-project
I checked for an invalid .angular.json but there is not one in my home directory.
I am running angular 6.0.3
There are no errors, I run the command it waits about 5 seconds and just returns doing nothing.
I found that I was running the wrong version of the Angular CLI, but I have upgraded and now when I run the build for iOS I get the following:
Error: Cannot connect to device socket.The error message is Device socket port cannot be found.
at Errors.fail (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/common/errors.js:125:28)
at Errors.failWithoutHelp (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/common/errors.js:135:21)
at AppDebugSocketProxyFactory.<anonymous> (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/device-sockets/ios/app-debug-socket-proxy-factory.js:105:38)
at Generator.throw (<anonymous>)
at rejected (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/device-sockets/ios/app-debug-socket-proxy-factory.js:5:65)
The Emulator opens and the app gets installed on the emulator but crashes as soon as it starts. I have tried to make this work with just a hello world app and it works correctly. But when using the shared flag it does not work.
Related
I'm Create new Nuxt3 App with command npx nuxi init nuxt-app in my Mac mini m1
After cd to nuxt-app and run yarn install completed.
I Can't run command yarn dev
It's throw Error Unexpected token '||='
Any One found this Error like me ? what solution you did ?
My error was happened on Official Code Sandbox link from NUXT Official Website too.
Nuxt3 Official Codesandbox
I don't really understand how to edit the codeSandbox.
But after some research the sign ||= is a new operator understand by node.
So your version of node doesn't understand the operator, try to update to the latest (stable) version, it's expected to work after the version >=15.0.
Im creating a new site using the command gatsby new and im getting the following error
Cloning site template C:\Users\catal\AppData\Roaming\npm\node_modules\gatsby-cli\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
throw ex;
^
TypeError: rd.cursorTo is not a function
at Timeout._onTimeout (C:\Users\catal\AppData\Roaming\npm\node_modules\gatsby-cli\node_modules\create-gatsby\lib\index.js:5:852)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)
Node.js v18.7.0
Im using windows 11
That was reported in gatsbyjs/gatsby issue 35426 in last April (2022), for now without conclusive resolution.
Try the create-gatsby locally first, following its readme, to check if this is a version issue (although node minimum version was set to 10).
If possible, try it also in a Linux WSL2 (for instance Ubuntu) VM, in order to check if this is related to the OS.
Upgrading my python version to latest fixed the issue for me.
When I try to install Cocos2d-iphone 3.0.0 RC4, I got an error: (run without sudo)
Error -60005 occurred while executing script with privileges.
So, I try to show its package content and use terminal to do: cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
I try this command: (with sudo)
sudo ./Cocos2D\ Installer\ 3.0.0
It works but I got log with some errors:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
Are there any way is better than this way?
I have same problem.
I think you installed old cocos2d-iphone and it caused this problem.
You should remove old cocos2d-iphone first. I removed:
~/Library/Developer/Xcode/cocos2d v3.x
And install again. It works for me.
Hope it works for you :)
I thought it was about time to look at a PHP Framework so I chose laravel. However, getting it running is causing me grief.
I followed the video from nettuts installing laravel 4 and at 5.05mins into the video he uses the php command-line server command (available from 5.4) php -S localhost:8888 -t public/ followed by confirming that it works via localhost:8888 in the browser which displays 'Hello Wolrd!'
I have XAMPP installed and my version of PHP is 5.3.15. I attempted to test it by doing http://localhost/learning-laravel/public/
At this point I have already downloaded composer and installed the dependancies successfully.
But I keep getting the following error:
Warning: require(/Applications/XAMPP/xamppfiles/htdocs/learning-laravel/bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/learning-laravel/bootstrap/autoload.php on line 17
Fatal error: require() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/learning-laravel/bootstrap/../vendor/autoload.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/learning-laravel/bootstrap/autoload.php on line 17
Inside my learning-laravel folder I do have bootstap/autoload.php
Can someone please help? Thanks.
I had another look at my folder structure and I noticed that composer had not run correctly and there were missing files. I've reinstalled it and it appears to be working.
I installed tower#0.4.2-22 on my windows 8 machine. After this I tried to verify the installation. I started mongod server, the tower server and called http://localhost:3000 in my browser. I get the error messages (in browser window and server log):
TypeError: Object Windows 8 has no method 'match'
at Object.Tower.MiddlewareAgent [as handle] (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\lib\tower-middleware\server\agent.js:13:21)
at next (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\proto.js:199:15)
at Object.handle (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\app\config\server\bootstrap.coffee:23:14)
at next (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\proto.js:199:15)
at Object.methodOverride [as handle] (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\middleware\methodOverride.js:37:5)
at next (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\proto.js:199:15)
at multipart (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\middleware\multipart.js:64:37)
at module.exports (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\middleware\bodyParser.js:57:9)
at urlencoded (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\middleware\urlencoded.js:51:37)
at module.exports (C:\Users\Philipp\Documents\Scripts\tower\Tests\test01\node_modules\tower\node_modules\connect\lib\middleware\bodyParser.js:55:7)
I tried to figure out what's happened and find out that in module
\node_modules\tower\lib\tower-middleware\server\agent.js
the method calls
mac: !!agent.os.match(/mac/i),
windows: !!agent.os.match(/win/i),
linux: !!agent.os.match(/linux/i)
failed because agent.os is of type object and not string.
I replaced the lines with
mac: !!agent.os.toString().match(/mac/i),
windows: !!agent.os.toString().match(/win/i),
linux: !!agent.os.toString().match(/linux/i)
and tower comes up and is running.
Is this a bug in the code or was something wrong with my installation?
First I installed tower with npm install power -g
Then I created a app with tower new test01
The next steps were:
- cd test01
- npm install
- forever server.js (failed forever wasn't installed)
- npm install forever -g
- forever server.js (failed mongod wasn't started)
- (started mongodb)
- forever server.js (is running now)
- cake watch (in another prompt - failed, because grunt missing)
- npm install grunt -g
- cake watch (now it's running)
- (go to browser and enter http://localhost:3000)
- (see error description above)
Seems to be a recent bug, probably something that has changed in recent versions of node.js or one of Tower's other depencies, I noticed tower has suddenly gotten a few bug reports for this over the past couple of days, and looks like someone submitted a patch last night
so watch for either that pull request to get accepted or pull it into your own fork of tower.js and try again.