Executing the following command...
~$ sudo npm install -g ios-sim
Yields...
\
> ios-sim#3.1.1 preinstall /usr/local/lib/node_modules/ios-sim
> rake build
/Users/jlivermore/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst [] (Gem::LoadError)
from /Users/jlivermore/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/jlivermore/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /Users/jlivermore/.rvm/gems/ruby-1.9.3-p327#global/bin/rake:18:in `<main>'
from /Users/jlivermore/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/jlivermore/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "ios-sim"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! ios-sim#3.1.1 preinstall: `rake build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ios-sim#3.1.1 preinstall script 'rake build'.
npm ERR! This is most likely a problem with the ios-sim package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rake build
npm ERR! You can get their info via:
npm ERR! npm owner ls ios-sim
npm ERR! There is likely additional logging output above.
As suggested in other posts, I have the following...
~$ which rake
/Users/jlivermore/.rvm/gems/ruby-1.9.3-p327#global/bin/rake
~$ rake --version
rake, version 10.0.3
~$ gem list | grep rake
rake (10.0.3)
Can anyone see what the issue is?
Please make sure that xcode is installed then retry. I assumed my brand new mac would have it on there by default but it doesnt.
Related
When I ran
ionic build ios
I get the following error.
sh: /Users/imac/Documents/TGF_IOS/node_modules/.bin/ionic-app-scripts: Permission denied
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ionic:build" "--"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world#0.0.0 ionic:build: `ionic-app-scripts build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the ionic-hello-world#0.0.0 ionic:build script 'ionic-app-scripts build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/imac/Documents/TGF_IOS/npm-debug.log
Any help will be appreciated..
Thanks in advance
Finally i have got the solution.
First step check if you have permission (read/write) to the project folder.
Secondly, run this command with sudo,
sudo npm install #ionic/app-scripts#latest --save-dev
This will install latest app-script and wll fix the issue.
I want to install opencv to use smartcrop.
I received opencv version 2.4.9.
Node Version 6.10.2
I am using version 3.10.10 of npm.
I get a long error message. And it can not be installed.
> opencv#6.0.0 install C:\Users\Admin\node_modules\opencv
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-
opencv.s3.amazonaws.com/o
node-pre-gyp ERR! Pre-built binaries not found for opencv#6.0.0 and
node#6.10.2
npm ERR! code ELIFECYCLE
npm ERR! opencv#6.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv#6.0.0 install script 'node-pre-gyp install --
fallb
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the opencv package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project
with:
npm ERR! npm bugs opencv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls opencv
npm ERR! There is likely additional logging output above.
I'm very beginner on Ruby and Ruby on Rails and i just managed to install RonR my server. My problem is, when i try to install a platform called ShareTribe, although everything went just fine until bunde install , npm install came with this error:
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents#1.0.12
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! Please include the following file with any support request:
npm ERR! /home/srv/rails/sharetribe/client/npm-debug.log
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! # postinstall: `cd client && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # postinstall script 'cd client && npm install'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd client && npm install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/srv/rails/sharetribe/npm-debug.log`
What i realized is that My os causes that (Darwin aka. Mac OSX is the valid os)
Is my guess right? If yes, is there any way to install the platform on Ubuntu?
If not, how can i correct this error?
Thank you in advance!
You must install all the requirement within the same version
make sure your npm path is registered, you can use the following
export PATH="/Users/{YOUR_USER_NAME}/.npm-packages/bin/:$PATH"
now you can install nvm using the following code
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash
and write the following to load the NVM and set the required version for sharetribe
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm alias default 7.8.0
Hope this would help
Try updating to enhance ionic some problems with updating my application in iTunes Connect. Now after updating I get this error when trying to install again and I can not.
MacBook-Pro:app_view_android lixsys$ ionic build ionic
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly suggested to install/upgrade the following:
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
Unknown platforms: ionic
MacBook-Pro:app_view_android lixsys$ npm install -g ios-deploy
npm ERR! tar.unpack untar error /Users/lixsys/.npm/ios-deploy/1.8.3/package.tgz
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! path /usr/local/lib/node_modules/ios-deploy
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/ios-deploy'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/ios-deploy']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/ios-deploy',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/ios-deploy',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR! 'FSReqWrap.oncomplete (fs.js:99:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/lixsys/app_view_android/npm-debug.log
There's a clue:
npm ERR! Please try running this command again as root/Administrator
Seems that you need to run the npm install as superuser:
$ sudo npm install -g ios-deploy
This is probably caused because npm was installed with restrictive permissions. To prevent that kind of issues on Mac it would be interesting for you to install npm through Node Version Manager so you won't require sudo permissions for that kind of things.
I want to install Plugman in iOS for managing the Phonegap plugins. I am using the below command in Terminal.
npm install -g plugman
But I am getting the below error,
npm ERR! Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/gtmac/.npm/npm/1.3.4/package/package.json',
npm ERR! parent: 'plugman' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "plugman"
npm ERR! cwd /Users/gtmac/Documents/Sinu/Insightix
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/gtmac/.npm/npm/1.3.4/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/gtmac/Documents/Sinu/Insightix/npm-debug.log
npm ERR! not ok code 0
I solved the issue by running the command after executing 'sudo -s'
$ sudo -s
$ npm install -g plugman