Hi I'm trying to install a client only version of jhipster.
I have used the following commands:
yo jhipster:client through yarn
but no luck, same with:
yo jhipster:client --npm --auth
and I still get the same error.
The server side generates fine but the client side is causing problems.
I'm on node: v7.7.1
ERROR in [at-loader] src/main/webapp/app/blocks/interceptor/auth-expired.interceptor.ts:6:14
TS2515: Non-abstract class 'AuthExpiredInterceptor' does not implement inherited abstract member 'responseIntercept' from class 'HttpInterceptor'.
ERROR in [at-loader] src/main/webapp/app/shared/login/login.service.ts:12:37
TS2304: Cannot find name 'AuthServerProvider'.
ERROR in [at-loader] src/main/webapp/app/shared/shared.module.ts:10:5
TS2305: Module '"/Volumes/Flux/jhipster/src/main/webapp/app/shared/index"' has no exported member 'AuthServerProvider'.
Child html-webpack-plugin for "index.html":
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.21 kB {0} [built]
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/Charlie/.nvm/versions/node/v7.7.1/bin/node" "/Users/Charlie/.nvm/versions/node/v7.7.1/bin/npm" "run" "webpack:build"
npm ERR! node v7.7.1
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! jhipster#0.0.0 webpack:build: `webpack --config webpack/webpack.vendor.js && webpack --config webpack/webpack.dev.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the jhipster#0.0.0 webpack:build script 'webpack --config webpack/webpack.vendor.js && webpack --config webpack/webpack.dev.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jhipster package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config webpack/webpack.vendor.js && webpack --config webpack/webpack.dev.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jhipster
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jhipster
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Volumes/Flux/jhipster/npm-debug.log
npm WARN #angular/compiler-cli#2.4.9 requires a peer of #angular/compiler#2.4.9 but none was installed.
npm WARN #angular/compiler-cli#2.4.9 requires a peer of #angular/core#2.4.9 but none was installed.
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/Charlie/.nvm/versions/node/v7.7.1/bin/node" "/Users/Charlie/.nvm/versions/node/v7.7.1/bin/npm" "install"
npm ERR! node v7.7.1
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! jhipster#0.0.0 postinstall: `node node_modules/pngquant-bin/lib/install.js && node node_modules/phantomjs-prebuilt/install.js && npm run webpack:build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jhipster#0.0.0 postinstall script 'node node_modules/pngquant-bin/lib/install.js && node node_modules/phantomjs-prebuilt/install.js && npm run webpack:build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jhipster package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/pngquant-bin/lib/install.js && node node_modules/phantomjs-prebuilt/install.js && npm run webpack:build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jhipster
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jhipster
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Volumes/Flux/jhipster/npm-debug.log
Client application generated successfully.
Start your Webpack development server with:
found it:
yo jhipster:client --auth jwt
the --help flags are not well documented for auth types but works though
Related
I am working on a simple smart mirror project with javascript and electron. I was able to get the software working on my laptop but when I moved it to the raspberry pi I am having issues installing npm. After entering "npm install" I get this:
npm WARN package.json bcrypt-pbkdf#1.0.1 No repository field.
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/jquery' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'smart-mirror-server'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 4.9.24-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/Desktop/smart-connected-mirror-master
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Desktop/smart-connected-mirror-master/npm-debug.log
npm ERR! not ok code 0
I have tried
sudo apt-get update
as well as
sudo apt-get upgrade
Any ideas what to do? Thanks!
EDIT:
I updated the node.js to a more current version and now it installed without error. However, when I typed in the command
npm start
I get this:
sh: 1: electron: Permission denied
npm ERR! Linux 4.9.24-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! smart-mirror-server#1.0.0 start: `electron .`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the smart-mirror-server#1.0.0 start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the smart-mirror- server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs smart-mirror-server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls smart-mirror-server
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/.npm/_logs/2017-05-29T03_33_22_466Z-debug.log
Have you seen this issue? Electron works only on RaspberryPi 2/3 what version are you using?
Also have you run npm install before actually run the app? Sometimes when copying node_modules from OS to OS the executable permissions get very confused.
You can try a fresh install with: rm -rf node_modules && npm install
i use https://github.com/AngularClass/angular2-webpack-starter and have foloowing problem: when I'm in project directory and run
karma start
Then i get:
SUMMARY:
✔ 0 tests completed
But when i run:
npm test
I get:
SUMMARY:
✔ 0 tests completed
npm ERR! Test failed. See above for more details.
If I run:
npm run test
I get:
SUMMARY:
✔ 0 tests completed
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "run" "test"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! code ELIFECYCLE
npm ERR! angular2-webpack-starter#5.0.5 test: `karma start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack-starter#5.0.5 test script 'karma start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! karma start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Kamil/Desktop/Code/officewise/officewise_frontend/npm-debug.log
Any idea what to do to remove this npm ERR? This is important for me because I use some external system to run tests and report errors of new commits in repository (my node version v7.1.0 (lastest), npm version 4.0.2 (lastest), Mac OS Sierra).
By default, Karma exits with an error if there are no tests to run.
To disable this behaviour, you need to add this line to your Karma configuration:
failOnEmptyTestSuite: false
I am new be to node js . started to set up node js project .
Got error when npm start command is used.
npm start
> sigma#1.1.0 start /usr/local/UserProfile/TitanUI
> http-server -p 8080
sh: http-server: command not found
npm ERR! Linux 2.6.32-504.8.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! sigma#1.1.0 start: `http-server -p 8080`
npm ERR! spawn ENOENT
npm ERR! Failed at the sigma#1.1.0 start script 'http-server -p 8080'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sigma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! http-server -p 8080
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sigma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sigma
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/UserProfile/TitanUI/npm-debug.log
These are the versions of centos , npm and node js.
centos:6.6
npm:3.10
nodejs:6.7.0
I guess I have latest versions only..Please help me if any one knows about this.
Removed the node modules folder and ran "npm install" and "npm start" again. This solved the above error. Thanks!
Keep getting multiple errors for installing and running npm with ghost. I thought it may have been sqlite, but that seems to have been already installed.
npm ERR! ghost#0.6.4 start: `node index`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the ghost#0.6.4 start script.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index
npm ERR! You can get their info via:
npm ERR! npm owner ls ghost
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.19.0-20-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /root/ghost
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/ghost/npm-debug.log
npm ERR! not ok code 0
It seems to be a problem with your ghost package. So to test it, please start with ghost from scratch:
cd ../
mkdir ghosttest
cd ghosttest
wget https://ghost.org/zip/ghost-0.6.4.zip
unzip ghost-0.6.4.zip
npm install --production
npm start
If it does not work, try updating node.js and npm to the latest stable version.
I am trying to install db-mysql module for node.js using
sudo npm install db-mysql
but I am getting the following error:
npm WARN package.json hbase#0.0.5 No repository field.
npm WARN package.json log4js#0.2.2 No repository field.
npm WARN package.json mime#1.1.0 No repository field.
npm WARN package.json restler#2.0.1 No repository field.
npm WARN package.json db-mysql#0.7.6 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm http GET https://registry.npmjs.org/db-mysql
npm http 304 https://registry.npmjs.org/db-mysql
> db-mysql#0.7.6 install /home/lifemap/lifemap-upload-master/node_modules/db-mysql
> node-waf configure build
sh: 1: node-waf: not found
> db-mysql#0.7.6 preuninstall /home/lifemap/lifemap-upload-master/node_modules/db-mysql
> rm -rf build/*
npm ERR! db-mysql#0.7.6 install: `node-waf configure build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the db-mysql#0.7.6 install script.
npm ERR! This is most likely a problem with the db-mysql package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls db-mysql
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "db-mysql"
npm ERR! cwd /home/lifemap/lifemap-upload-master
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/lifemap/lifemap-upload-master/npm-debug.log
npm ERR! not ok code 0`
Is there any other command or version I need to use or install for db-mysql?
Here is the root cause of the problem
sh: 1: node-waf: not found
node-waf has been replaced by node-gyp in Node 0.8, so you won't be able to build this module, unless you will fork the module and will change it to use node-gyp. Basically, seems that db-mysql is not actively supported anymore.
As a replacement, you could use mysql module, which is actively supported.
You can try one of this method without having to sudo. Hope it'll work!