Ionic Appflow build fails with "Permission denied" - ionic-framework

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

Related

I got this Error when i try to install reNgine, any Suggest?

when I try to install reNgine recon tool, it always stops at (32/51) and gives me this error, I tried searching for it but no luck
failed to solve: executor failed running [/bin/sh -c GO111MODULE=on go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei#latest]: exit code: 2
make: *** [Makefile:22: up] Error 17
I tried to run
GO111MODULE=on go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei#latest
and reinstall it but the same Error pops up

how to solve below native script code sharing app creation error?

i am beginner to nativescript and i am getting the error while creating the nativescript angular code sharing new app using CLI
i am trying ng new -c=#nativescript/schematics ns-oys --shared --style=scss command to create new application.
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\which\which.js:89:16
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:149:21)
gyp verb which failed python2 Error: not found: python2
gyp verb which failed at getNotFoundError (F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\which\which.js:89:16
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:149:21) {
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundError ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)\n at F ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)\n at E ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\which\which.js:89:16\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5\n at ' +
gyp verb which failed 'FSReqCallback.oncomplete (fs.js:149:21)',
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\which\which.js:89:16
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:149:21)
gyp verb which failed python Error: not found: python
gyp verb which failed at getNotFoundError (F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\which\which.js:89:16
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:149:21) {
gyp verb which failed stack: 'Error: not found: python\n at getNotFoundError ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:13:12)\n at F ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:68:19)\n at E ' +
gyp verb which failed '(F:\Work\ns\ns-oys\node_modules\which\which.js:80:29)\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\which\which.js:89:16\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\isexe\index.js:42:5\n at ' +
gyp verb which failed 'F:\Work\ns\ns-oys\node_modules\isexe\windows.js:36:5\n at ' +
gyp verb which failed 'FSReqCallback.oncomplete (fs.js:149:21)',
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (F:\Work\ns\ns-oys\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder. (F:\Work\ns\ns-oys\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at F:\Work\ns\ns-oys\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:149:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\anup\programFile\node\node.exe" "F:\Work\ns\ns-oys\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\Work\ns\ns-oys\node_modules\node-sass
gyp ERR! node -v v12.3.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN codelyzer#4.2.1 requires a peer of #angular/compiler#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/core#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/platform-browser-dynamic#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/platform-browser#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer
dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/common#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.4.0 requires a peer of ajv#^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.10.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.10.0 postinstall 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:
Update angular cli using command npm i -g #angular/cli and the command started working.

Sails Waterline Oracle - installing sails-oracle-database - Error regarding oci/version

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

Ionic CLI start project error

I'm having a few questions and problems. I'm using the CLI I went with the choice of tabs. when I start a project I get back these errors is there any way you can give me some input please?
npm i
× Running command - failed!
[ERROR] An error occurred while running npm i (exit code 1):
node-sass#4.5.3 install C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-sass
node scripts/install.js
Downloading binary from https://github.com/sass/nod...
Cannot download "https://github.com/sass/nod...":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
uglifyjs-webpack-plugin#0.4.6 postinstall
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js
node-sass#4.5.3 postinstall C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-sass
node scripts/build.js
Building: C:\Program Files (x86)\nodejs\node.exe
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose
--libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files (x86)\nodejs\node.exe',
gyp verb cli
'C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.6.2
gyp info using node#9.3.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)
gyp verb which failed at F
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)
gyp verb which failed at E
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)
gyp verb which failed at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16
gyp verb which failed at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5
gyp verb which failed at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)
gyp verb which failed at F
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)
gyp verb which failed at E
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)\n at F
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)\n at E
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5\n at
FSReqWrap.oncomplete (fs.js:166:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed stack: 'Error: not found: python\n at getNotFoundError
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:13:12)\n at F
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:68:19)\n at E
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:80:29)\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\which\which.js:89:16\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\index.js:42:5\n at
C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\isexe\windows.js:36:5\n at
FSReqWrap.oncomplete (fs.js:166:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.
(C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe"
"C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
"--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\webde\Desktop\ionicProjects\tryApp\node_modules\node-sass
gyp ERR! node -v v9.3.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted
{"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.5.3 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.5.3 postinstall 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! C:\Users\webde\AppData\Roaming\npm-cache_logs\2018-01-02T16_46_21_131Z-debug.log
Not a solution, but someone also posted this problem as an issue in the "sass/node-sass" repo on github: https://github.com/sass/node-sass/issues/2200.
Update: If you're using node 9, the problem is the fact that node-sass isn't compatible with it (see https://forum.ionicframework.com/t/problem-installing-ionic-and-starting-a-project/116887).
Using node LTS (https://nodejs.org/en/blog/release/v8.9.0/) fixed the issue for me.

Can't install coffeescript on ubuntu LTS

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