I'm trying to install Spectral. It looks like everything installs correctly, but the spectral command is still unrecognized.
Any ideas why?
Related
I've been using the command line for some time now, but I'm still not sure what exactly happens when I do certain things - and I'm not sure what to google for help.
When I'm working with Anaconda and Python, I found the environments I created in C:\Users\<User>\Anaconda3\envs. And every python package I install in an environment seems to go there. Great!
But how does this work outside of Anaconda/Python? For example, I installed the vue CLI via npm install -g #vue/cli. What exactly happens when I do this; or more precicely, where are files saved?
During the creation of a new vue project, a readme.md is created as well. It states that users should simply npm install to setup the project. It seems that this command installs all packages stated in the package.json. I would like to try out if this command works for new users, but I already (obviously) have everything installed. Can I create some kind of environment (like I do with Anaconda for Python) to accomplish this?
Thanks a lot for your answers!
I'm trying to run the Kotlin/Native Hello Program
but the terminal says the command kotlin-native cannot be found. I'm on a MacBook, using zsh (get same error when I use bash) and installed Kotlin via Homebrew before, so kotlin and it's compiler works on my machine, the kotlinc command works just fine. I'm trying to use the compiler instead of gradle for now. Is there a different command I'm supposed to be using?
It sound like you may have had a similar problem to me. Installing kotlin-native via homebrew did not install the kotlinc-native command.
To get the command working, I had to do the following:
Go to https://github.com/JetBrains/kotlin/releases and get the latest version of Kotlin
Extract it to .kotlin in the home directory
Add export PATH="$HOME/.kotlin/bin:$PATH" to .zshrc
The problem with this method is that it's completely disconnected from Homebrew. You will have to run the steps again every time you want to update Kotlin.
You've typed kotlin-native but the tutorial says kotlinc-native, which is the actual name of the process file.
If kotlinc works then you might just have a typeo.
I don't use these processes directly, but I'm somewhat familiar with them. My guess is check the name.
Problem Summary
So I'm trying to launch a new Gridsome project for local development. I've toyed with Gridsome in the past and had a great experience, so I decided to give it another shot.
This time around; however, when I run the gridsome create command, the system creates a new Gridsome site directory as expected but returns the following error message:
The instructions in this error message say to enter the newly-created site directory and run gridsome develop to start local development. However, after running cd my-gridsome-site and subsequently running gridsome develop, I then receive this error:
So far, I've tried running npm install --save from the site directory as well as yarn install, both to no avail. Thinking that this was possibly tied to my terminal, I switched from using the Zsh terminal to using the Bash terminal. This also did not work.
I'm at a loss here and could really use a hand.
Thank you for helping,
David
This seems to be an environment error. Gridsome requires Node.js (v8.3+) and recommends Yarn.
Make sure your Node.js version is v8.3+ and use only one package manager like Yarn.
to check node version: node -v
I had this same issue, but I resolved it after installing yarn and running the project with yarn instead of NPM. So you should try using yarn it will help,
I want to install PORTA. I am using a win 64 bit OS. I read the installation process but I cannot really get how it works. Can anyone guide me how to install it. For example, what exactly am I supposed to do in the second step "2) Just type 'make". Type make where?
I don't know maybe I'm missing something very obvious but I got stuck
I appreciate any help in advance!!
Thank you!
That link on git hub is just the source files for the project. You will have to download it (git clone or download zip) and compile it to build the executable. You will need to open a command prompt in the gnu-make directory containing the "Makefile" and run make. Of course, this will require that you have a compiler installed (MinGW, Cygwin, etc). It does look like there is a Visual Studio solution in the win32 directory if you are not familiar with building with makefiles from the command line.
I'm trying to setup mocha tests in my project using the globally installed mocha, which is the latest version (1.7.7 at the time of writing).
Instead of doing something, it opens my default editor and opens the file mocha.js. Running mocha does this; mocha test ., mocha --help, and npm test also gives the same result. Installing it locally produced the same effect.
Is this just some configuration error? Maybe I've missed a step during setup? Please advise me on how to fix this.
Nvm, I was just being dull. I had run mocha init ., which somehow messed it up.
Removing the generated mocha.js and mocha.css files did the trick.
If anyone could explain why this happens though, that'd be great! :)