I'm trying to install coffee script on ubuntu 10.04. It hangs forever. This is the output of
npm install coffee-script --verbose:
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/home/deployment/local/node/bin/npm',
npm verb cli 'install',
npm verb cli 'coffee-script',
npm verb cli '--verbose' ]
npm info using npm#1.0.23
npm info using node#v0.5.4-pre
npm verb config file /home/deployment/.npmrc
npm verb config file /home/deployment/local/node/etc/npmrc
npm verb into /home/deployment [ 'coffee-script' ]
npm verb cache add coffee-script
npm verb cache add [ 'coffee-script', null ]
npm verb parsed url { pathname: 'coffee-script',
npm verb parsed url href: 'coffee-script' }
npm info addNamed [ 'coffee-script', '' ]
npm verb addNamed [ null, '' ]
npm verb GET coffee-script
npm verb raw, before any munging coffee-script
npm verb url resolving [ 'https://registry.npmjs.org/',
npm verb url resolving './coffee-script' ]
npm verb url resolved https://registry.npmjs.org/coffee-script
npm verb url parsed { protocol: 'https:',
npm verb url parsed slashes: true,
npm verb url parsed host: 'registry.npmjs.org',
npm verb url parsed hostname: 'registry.npmjs.org',
npm verb url parsed href: 'https://registry.npmjs.org/coffee-script',
npm verb url parsed pathname: '/coffee-script' }
npm verb etag "51J8TC2ZNUASOLES8S4M8TNK3"
npm verb response https://registry.npmjs.org/coffee-script
npm verb etag coffee-script from cache
npm verb GET coffee-script/1.1.2
npm verb raw, before any munging coffee-script/1.1.2
npm verb url resolving [ 'https://registry.npmjs.org/',
npm verb url resolving './coffee-script/1.1.2' ]
npm verb url resolved https://registry.npmjs.org/coffee-script/1.1.2
npm verb url parsed { protocol: 'https:',
npm verb url parsed slashes: true,
npm verb url parsed host: 'registry.npmjs.org',
npm verb url parsed hostname: 'registry.npmjs.org',
npm verb url parsed href: 'https://registry.npmjs.org/coffee-script/1.1.2',
npm verb url parsed pathname: '/coffee-script/1.1.2' }
npm verb etag "51J8TC2ZNUASOLES8S4M8TNK3"
npm verb response https://registry.npmjs.org/coffee-script/1.1.2
npm verb etag coffee-script/1.1.2 from cache
npm verb bin dist [ null,
npm verb bin dist { shasum: 'a530a19d050c37054d83ae6c8041fba0fcd61ed3',
npm verb bin dist tarball: 'http://registry.npmjs.org/coffee-script/-/coffee-script- 1.1.2.tgz' } ]
npm verb addRemoteTarball [ 'https://registry.npmjs.org/coffee-script/-/coffee-script-1.1.2.tgz',
npm verb addRemoteTarball 'a530a19d050c37054d83ae6c8041fba0fcd61ed3' ]
npm verb mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1312820932485'
npm verb mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1312820932485/1312820932485-0.11148986197076738'
npm verb mkdir done: /tmp/npm-1312820932485/1312820932485-0.11148986197076738 755
npm info fetch https://registry.npmjs.org/coffee-script/-/coffee-script-1.1.2.tgz
npm verb fetch to /tmp/npm-1312820932485/1312820932485-0.11148986197076738/tmp.tgz
It seems to hang forever on the fetch. When I wget that URL I get a message that the http certificate has expired.
Any suggestions??
Now you can just do
sudo apt-get install coffeescript
I have the same issue. As you noted it's a problem with the ssl cert. I used
wget --no-check-certificate https://registry.npmjs.org/coffee-script/-/coffee-script-1.1.2.tgz
then
npm install -g coffee-script-1.1.2.tgz
Node in odd versions is considered to be unstable. Use the last release of the 0.4 branch instead and it should work (it did for me yesterday).
I've been having trouble too in the last few days. I think there might be a problem with the package registry.
UPDATE: This definitely seems to be a npm problem
Older versions of Ubuntu have a fairly outdated node.js. These are the instructions from node.js's wiki (https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elementary-os):
Obtaining a recent version of Node or installing on older Ubuntu and
other apt-based distributions may require a few extra steps. Example
install:
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo npm install coffee-script#1.1.2
Related
I am trying to generate the Kibana plugin and for that I already downloaded the .zip file from the github.
However while preparing for the Kibana development environment, I got an error as mentioned below from yarn kbn bootstrap cmd:
ERROR UNHANDLED ERROR
ERROR Error: Command failed with exit code 128: git merge-base HEAD FETCH_HEAD fatal: Not a valid object name HEAD
Note:
I already sudo git init
Steps followed so far
sudo wget https://github.com/elastic/kibana/archive/refs/tags/v7.17.0.zip
sudo apt-get install unzip
sudo unzip v7.17.0.zip
sudo mv kibana-v7.17.0 kibana
sudo chmod -R 777 kibana-7.17.0
sudo yarn add require-in-the-middle
sudo yarn add symbol-observable
sudo yarn add source-map-support
sudo yarn add lodash
sudo git init
sudo yarn kbn bootstrap -- failed
ERROR UNHANDLED ERROR
ERROR Error: Command failed with exit code 128: git merge-base HEAD FETCH_HEAD
fatal: Not a valid object name HEAD
Running a Dockerfile containing
RUN yum install python3 -y\
&& url -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py\
#no --user - install for the whole machine
&& pip install awscli --upgrade
I get
/bin/sh: url: command not found
I clicked trough a lot of /bin/sh: xyz: command not found and didn't find more than I already knew: the package/executable url seems to be missing on my system. How do I install this on CentOS? A web search also yielded only useless results.
yum install -y url gives me No package url available.
While the command url -O https://bootstrap.pypa.io/get-pip.py looks right on first sight, It contains a typo or copy-paste-mistake. curl -O https://bootstrap.pypa.io/get-pip.py with curl instead of url being correct.
I want to use a npm cli utility (this one), inside a bash script and to run it via a github workflow.
This is my basic script:
folder="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p "$folder"/rawdata
mkdir -p "$folder"/processing
npm list -g --depth=0
rm "$folder"/rawdata/"$reg".png
capture-website --delay 5 --full-page --width 1280 --height 720 --output "$folder"/rawdata/"$reg".png "https://ondata.github.io/vaccinipertutti/?area=SIC"
I run it using this github workflow (it's Ubuntu 20.04.2 LTS), in which I set capture-website-cli installation in this way:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
NPM_CONFIG_PREFIX=~/.npm-global
npm install -g capture-website
But when the script runs I have this error:
./test.sh: line 13: capture-website: command not found
It seems that it has been not installed in ~/.npm-global.
If I run find /home/runner -executable -name capture-website I have
/home/runner/.npm-global/lib/node_modules/capture-website
Do you have some advice to solve my problem?
You might need to differentiate between:
capture-website
sindresorhus/capture-website-cli which provide a CLI (commannd-line interface) way to use that npm library (library means: no executable in .npm-global/bin)
You need to install the latter in your runner $PATH.
npm install --global capture-website-cli
I am trying to build my project on Ionic Appflow, but it keeps failing with the following. I do not understand what could be wrong as I can locally generate and build locally.
Has anybody else experienced such issues?
sh: 1: ng: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! aardraapp#0.0.1 build: `ng build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the aardraapp#0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-24T20_45_42_679Z-debug.log
+------+---------------------+-------------+
| fastlane summary |
+------+---------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 2 |
| 3 | add_git_credentials | 0 |
| 4 | modify_config_xml | 0 |
| 💥 | build_pro_app | 17 |
+------+---------------------+-------------+
[20:45:42]: fastlane finished with errors
/usr/local/bin/fastlane: [!] Exit status of command 'npm run build' was 126 instead of 0.
(FastlaneCore::Interface::FastlaneShellError)
> aardraapp#0.0.1 build /builds/aardrasystems/app
> ng build
sh: 1: ng: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! aardraapp#0.0.1 build: `ng build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the aardraapp#0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-24T20_45_42_679Z-debug.log
Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1
If you did the project in Windows, it is possible that it is a permission error on the generated files. Why AppFlow uses a Unix OS for Android.
You have to give it permissions through GIT:
https://ionic.zendesk.com/hc/en-us/articles/360000160067-Adding-execute-permissions-using-git
I'm a Grails (with Oracle) developer who is experimenting with Sails.js
I'm having an issue in installing the waterline oracle adapter. Steps I can do to duplicate, with a standalone node app, using Mac OS:
Following instructions on https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx
I placed the Oracle basic client files in my ~/lib folder by using: cp instantclient_12_2/{libclntsh.dylib.12.1,libclntshcore.dylib.12.1,libons.dylib,libnnz12.dylib,libociei.dylib} ~/lib/
In my node app, I can then install the oracle add-on by running: npm install oracledb
I can then run the examples they provide, such as by doing "node select1.js" and it successfully connects to the database and runs fine, etc
I then try to install the waterline oracle adapter by doing: npm install sails-oracle-database
It gives this error:
>oracledb#1.13.1 install /Users/myuser/Documents/node/oracle/node_modules/sails-oracle-database/node_modules/oracledb
>node-gyp rebuild
node-oracledb ERR! Error: Cannot find /opt/oracle/instantclient/libclntsh.dylib
node-oracledb ERR! Error: Do you need to run 'cd /opt/oracle/instantclient && ln -s libclntsh.dylib.* libclntsh.dylib'?
node-oracledb ERR! Error: See https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx
gyp: Call to 'INSTURL="https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx"; ERR="node-oracledb ERR! Error:"; if [ -z $OCI_LIB_DIR ]; then if [ -f /opt/oracle/instantclient/libclntsh.dylib ]; then echo "/opt/oracle/instantclient/"; else echo "$ERR Cannot find /opt/oracle/instantclient/libclntsh.dylib" >&2; echo "$ERR Do you need to run 'cd /opt/oracle/instantclient && ln -s libclntsh.dylib.* libclntsh.dylib'?" >&2; echo "$ERR See $INSTURL" >&2; echo "" >&2; fi; else if [ -f "$OCI_LIB_DIR/libclntsh.dylib" ]; then echo $OCI_LIB_DIR; else echo "$ERR Cannot find \$OCI_LIB_DIR/libclntsh.dylib" >&2; echo "$ERR Do you need to run 'cd \$OCI_LIB_DIR && ln -s libclntsh.dylib.* libclntsh.dylib'?" >&2; echo "$ERR See $INSTURL" >&2; echo "" >&2; fi; fi;' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
Trying to make sense of the error... It looks like it wants me to set env variables such as: OCI_LIB_DIR
However, the instructions on the oracle page it references say that is no longer necessary withe oracle-node 2 version. Is it possible the waterline-oracle adapter isn't yet compatible with this version?
You'll also need the SDK package of the oracle instant client. If your instant client directory already has a "sdk" folder then you're set. Next is to copy it to your "/opt/oracle/instantclient" directory.
➜ instantclient pwd
/opt/oracle/instantclient
➜ instantclient ls
BASIC_README glogin.sql libnnz12.dylib libocijdbc12.dylib libsqlplusic.dylib uidrvci
SQLPLUS_README libclntsh.dylib libocci.dylib libons.dylib ojdbc8.jar xstreams.jar
adrci libclntsh.dylib.12.1 libocci.dylib.12.1 liboramysql12.dylib sdk
genezi libclntshcore.dylib.12.1 libociei.dylib libsqlplus.dylib sqlplus