Folks,
I am working on Win 7 professional.
Versions of various utilities on my computer are as follows:
Nodejs : v0.10.8
npm: v1.2.23
I am trying to seed the Angular application using Yeoman. I have followed the following instructions
First install yo,bower and grunt
npm install -g yo grunt-cli bower
Goto the directory where I want to create my webapp and run
c:\somefolder>yo angular
Runt the grunt server
C:>grunt server
Steps 1 and 2 above run fine but on step 3 I get the following errors
C:\somefolder>grunt -server
Running "clean:dist" (clean) task
Running "jshint:all" (jshint) task
3 files lint free.
Running "clean:server" (clean) task
Running "coffee:dist" (coffee) task
Running "coffee:test" (coffee) task
Running "compass:dist" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.
Now I do have ruby installed and its available in PATH variable.
C:>ruby --version
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
How do I oversome this? How do i ensure that grunt server does not abort ?
Any help will be highly appreciated.
gem install compass
also here:
https://rubygems.org/gems/compass
I had the same problem as you mentioned and I noticed that Compass had to be called as compass2.0 so I symlinked compass to compass2.0 and it solved the problem.
Here's the command:
sudo ln -s /usr/bin/compass2.0 /usr/bin/compass
Hope this helps
I had this problem on OS X. Here is the series of commands I eventually used to get everything installed and working: https://gist.github.com/kristopherjohnson/f1d7e4d1c31ae3b0899e
FWIW, it seems like the missing piece for me was gem install sass. In theory, gem install compass should have installed Sass too, but explicitly installing Sass made the error disappear.
Related
I'm on mac.
Following the guide here: https://docs.sencha.com/extjs/7.0.0-CE/guides/getting_started/mobile_desktop_application/getting_started_with_npm.html
I signed up for to the community edition, received the mail, created my sencha.myget.org account, and did the following commands successfully in a terminal:
step 1: login to npm repo
npm login --registry=https://sencha.myget.org/F/community/npm/ --scope=#sencha
step 2: install app generator cli
npm install -g #sencha/ext-gen
step 3: generate the app
ext-gen app -a
Now step 4 (run the new application) is where I have a problem:
cd my-app
npm start
Gives me this error:
If I open the log I can see the exception message:
/Users//Desktop/test/extjs/my-app/node_modules/#sencha/cmd/dist/plugin.xml:378: The following error occurred while executing this line:
/Users/me/Desktop/test/extjs/my-app/build.xml:15: Unable to create javax script engine for javascript
What am I doing wrong?
So this is how I did it on mac 10.14.
Ok, so reading about javax, apparently it was used in java se8 (https://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngine.html).
So, I downloaded it using this website: https://adoptopenjdk.net/,
and more precisely this page: https://adoptium.net/?variant=openjdk8.
Once downloaded, I had multiple versions of java installed on my computer and so I had to switch to that one.
So I learned how to switch to any java versions.
First to display the existing versions, type this in the terminal:
/usr/libexec/java_home -V
Then to change version:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
(notice that for the version number you just type the first two digits, not the whole version number )
To check that it worked:
java -version
Once java 1.8 (apparently that's the version name for jdk8) was running, the npm start command worked without errors.
You need to downgrade Java to any version less than 15, because the Nashorn JavaScript Engine had been removed, which it depends upon. Downgrading Java as far as version 8 probably isn't the optimum (in particular, when also using it for Java development).
I'm trying to use a curve fitting package (lmfit) I did use several times in former times with Python 2.7. Since I moved to Python 3.7, I'm facing some problems on running my script. The error message I get is "ModuleNotFoundError: No module named 'lmfit'".
If I try to reinstall/update the package (using whatever of the commands in https://anaconda.org/conda-forge/lmfit): it looks like there are conflicting packages in my pc. Here the screen of my prompt:
prompt after using 'conda install -c conda-forge/label/cf202003 lmfit'
Any hints on how to solve this conflict?
just install with pip install lmfit.
I am trying to develop a Web Application using Angular JS. I am about to develop Admin Panel. I will use this template - http://startangular.com/product/flatlogic-angular-material-dashboard/. I need to set up the that admin panel following this instruction - https://github.com/flatlogic/angular-material-dashboard/blob/master/README.md. As you can see, I need to run this command in terminal.
$ gem install sass
I am using Windows 10. All the steps working fine. But when I run that command, it is giving me this error.
What is that error and how can I solve it? Is there a way to solve that step without using that command?
I found the solution. This question saved me.
Error: SASS installation for windows
I run this command
gem source -a http://rubygems.org/
Before running this
gem install sass
This is additional
If you still getting errors, try this.
gem sources --remove https://rubygems.org/
gem sources --add http://rubygems.org
gem update --system
gem sources --remove http://rubygems.org
gem sources --add https://rubygems.org
Hi I am trying to install the typescript definition manager (TSD) on my Ubuntu 14.04 VM. I am following the '5 minute tutotial' from Angular.
It says to run
npm install -g tsd#^0.6.0
After that I am supposed to run
tsd install angular2 es6-promise rx rx-lite
Anyway, after running the last command Ubuntu simply returns
tsd: command not found
Can anyone help here?
Can you run the npm install -g tsd again, it should output the location where it installs it for you.
In this case that location isn't added to your path variable and you should use a absolute location (or add it to your path).
You should be able to do this in ubuntu by creating a ~/.profile file with
export PATH=$PATH:/path/to/tsd/folder/
The problem in my case seemed to be the nodejs version on my Ubuntu VM. I created a new VM and installed nodejs the following way
cd /usr/local/src
wget http://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz
tar -xvzf node-v0.12.7.tar.gz
cd node-v0.12.7
./configure
make
sudo make install
which node
After this I could run
tsd install angular2 es6-promise rx rx-lite
and everything worked as expected. SO I believe updating the my nodejs was the solution. It seems that my old nodejs did not add tsd to the path
Can anyone help here?
Check your node version. Recommend you use latest iojs. It works as shown :
Ran into this error when trying to run rethinkdb rebuild command:
Error when launching 'rethinkdb-index-rebuild': No such file or
directory The rethinkdb-index-rebuild command depends on the RethinkDB
Python driver, which must be installed. If the Python driver is
already installed, make sure that the PATH environment variable
includes the location of the backup scripts, and that the current user
has permission to access and run the scripts.
Yet I have the rethinkdb python module installed and path setup properly:
Requirement already satisfied (use --upgrade to upgrade): rethinkdb in
/Library/Python/2.7/site-packages Cleaning up...
Why doesn't this work?
If the rethinkdb-index-rebuild script is not in your PATH, you might be able to invoke the index-rebuild command as
python -mrethinkdb._index_rebuild
Turns out it was a feature implemented in a newer version of the python module. Solved it by:
sudo pip install --upgrade rethinkdb