I am trying to install casperJS on Windows 8. First I install phantomjs 1.8.2
I go to http://casperjs.readthedocs.org/en/latest/installation.html
Download the zip under "Latest stable version". The site says its ver 1.0.3
I need 1.1.0 so I download the zip under "Latest development version (master branch):"
When I unzip it, add the path to PATH_VARIABLE and run it, I get error:
"CasperError: Can't find module cli"
Can someone plz tell from where can I get casperJS 1.1.0 for win8 ? I have spent entire day in this !
Are you using Visual Studio Node tools? (For some reason, with this package, attempting to install via the typical approach seemed to fail.) I was able to get installation to work by adding the casperjs line to my package.json file:
"dependencies": {
"cheerio": "^0.19.0",
"express": "^4.13.3",
"request": "^2.61.0",
"casperjs": "^1.1.0-beta3"
}
When I saved the file, Visual Studio ran npm install, which successfully installed the package. Running the command manually after updating the package.json and CD'ing into the appropriate directory should achieve the same results.
Related
I am completely unfamiliar with GitHub.
I am trying to install this Decimal Clock widget from GitHub (https://github.com/XXIIVV/clock) on my Mac.
I have downloaded and git cloned the files. I have tried using npm install and npm run build to no avail.
When I ran npm install (as instructed in the link), it returns: "up to date, audited 3 packages in 2s, found 0 vulnerabilities"
When I run npm run build_osx (as instructed in the link), I get this error: Missing script: "build_osx"
The files in the folder are:
CNAME, PREVIEW.jpg, index.html, pascal (folder), LICENSE.md, README.md, index.js, web (folder)
Inside the pascal folder is "neralie.pas"
I have been trying to install it for days. Perhaps step-by-step instructions would be helpful.
I'm trying to install jquery-csv library
with visual studio in ubuntu for the first time
the instruction says that to install package I should run:
npm i jquery-csv
however whenever I tried it npm warns me that it can't find package.son:
is this something i'm expected to see in a normal package installation?
if not, please help me with some instructions
The error you're getting suggests you aren't using a Node.js project and don't have a package.json file.
If this is an existing browser-based project and you want to add the library, you can download jquery.csv.min.js from here: https://github.com/typeiii/jquery-csv/tree/master/src , and add a client-side (browser) reference in your HTML file as shown on the readme:
<script src="jquery.csv.min.js"></script>
If you're working on a new Node.js project, the first step is to run npm init, see npm init - create a package.json file
I have a global bs-platform installation and a local one for a local project. They are in different versions. Everything was fine until today. Every time I try to run my local project, the following error is thrown:
bs-platform version mismatch Running bsb 5.0.4 (/home/jefferson/.nvm/versions/node/v12.4.0/lib/node_modules/bs-platform) vs vendored 4.0.5 (/home/jefferson/astrocoders/lion-carne-client/node_modules/bs-platform)
How can this be solved? I'm using yarn.
You have a few options:
Use the locally installed package
a. Through a script defined in package.json, executed using yarn run or npm run
b. Through executing the command via npx, which comes with npm: npx bsb -make-world
Use the globally installed package by linking it into the project and overwriting any locally installed package of the same name, using either yarn link bs-platform or npm link bs-platform (only needed once per project). node_modules/bs-platform will then be a symlink that points to the globally installed package, hence no version mismatch when running the global bsb.
I was trying to install the package of HOA/Websockets in my Laravel 5 website,
from following link
https://laracasts.com/discuss/channels/tips/hoawebsocket-with-laravel-5-projects-push-notifications
But when I added the
"require": {
"hoa/websocket": "~2.0"
}
In my composer and ran
composer install
But in my command prompt it says nothing to be installed. Can any one help me out with this, Please?
Also when I try to do
composer require "hoa/websocket": "~2.0"
it is uninstalling some of the packages and not installing it back.
Well I fixed it this way
Just copied the new package that was installed inside the Vendor folder which was vendors/HOA,
Then I pasted in my older backup of the vendor folder and pasted it back inside my website and VOILA!! it works
Hope it helps some one needy
Thanks
I want to install the package dataframe of Octave on one of my servers, which does not have internet access. I used my laptop to download dataframe-1.1.0.tar.gz. I wonder how I can install it on my server manually.
In the README.html of Octave 4.0.0 folder you can find the following passage:
Included Octave Forge Packages
A number of Octave-Forge packages have been included with Octave, however they must be installed in order to use them.
To install:
• Start Octave and then open the build_packages.m file found in the src folder where Octave was installed.
• Run the script build_packages.m to build and install the packages.
Installation is a one-time procedure. After installation packages must still be loaded in order to use them with the pkg load PACKAGENAME command.
Other packages are available from Octave-Forge.
What you need to do for other packages, which are not included with Octave, is: download the package from http://octave.sourceforge.net/packages.php. Then put the package in the src folder and modify build_packages.m respectively before executing it.
According to the Octave documentation:
37.1 Installing and Removing Packages
Assuming a package is available in the file image-1.0.0.tar.gz it can
be installed from the Octave prompt with the command
pkg install image-1.0.0.tar.gz
If the package is installed successfully nothing will be printed on
the prompt, but if an error occurred during installation it will be
reported. It is possible to install several packages at once by
writing several package files after the pkg install command. If a
different version of the package is already installed it will be
removed prior to installing the new package. This makes it easy to
upgrade and downgrade the version of a package, but makes it
impossible to have several versions of the same package installed at
once.