I am setting up a Jenkins project on windows slave machine
As a build step I am installing node packages
My package.json also have dependencies from git repos.
Node is getting detected by my machine but the npm install command is taking forever to execute and after sometime it gives the following error
Unhandled rejection Error: premature close
at PassThrough.onclose (C:\Jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJS_10.15.0\node_modules\npm\node_modules\end-of-stream\index.js:47:67)
at PassThrough.emit (events.js:187:15)
at emitCloseNT (internal/streams/destroy.js:59:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
Node version
10.15.0
This happens when a dependency (module) is missing the package.json or has a syntax or semantic error in the package.json.
https://github.com/npm/npm/issues/20824
Related
I am running the demo MoveIt Servoing,I am using the following commands
1. roslaunch ur_gazebo ur5.launch
2. roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true
3. roslaunch ur5_moveit_config moveit_rviz.launch config:=true
After running the following command
4. roslaunch moveit_servo spacenav_cpp.launch
I am getting the following error Could not open the space navigator device. Did you remember to run spacenavd (as root)? I tried resolving the issue using the [website Link Solution], however I am getting the following error
root#abc-ThinkPad-P17-Gen-2i:/home/abc/ws_moveit# rosrun spacenav spacenavd
Command 'rosrun' not found, but can be installed with:
apt install rosbash
root#abc-ThinkPad-P17-Gen-2i:/home/abc/ws_moveit# sudo apt install rosbash
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
rosbash : Depends: catkin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root#abc-ThinkPad-P17-Gen-2i:/home/abc/ws_moveit#
I am using Ubuntu 20.04 and ROS Noetic
After completing full installation of Hyperledger as per their documentation mentioned here, when I execute composer-playground, I get error saying The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
This happens even after I run npm install and npm rebuild.
Full stacktrace is metioned below:
error: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'
at Promise.resolve.then (/usr/lib/node_modules/composer-playground/node_modules/composer-common/lib/connectionprofilemanager.js:144:42)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:118:7)
Looks like you are using node V9. Composer only works with Node V8. Suggest you use nvm https://github.com/nvm-sh/nvm to manage your node installations. Use it to install node 8 (nvm install 8). Then you will need to npm install composer again.
I am trying to setup jenkins job for Angular cli project. I am getting 406 error. This stuff works in my local. The issue is only when I run from jenkins. Can someone please guide me here.
npm ERR! node v6.6.0
npm ERR! npm v4.1.2
npm ERR! code E406
npm ERR! Registry returned 406 for GET on http://myRepository.com:someport/artifactory/blahblah/#angular%2fcommon
Yes, you need Node > 6.9 and npm > 3.0 for angular CLI.
Verify that you are running at least node 6.9.x and npm 3.x.x by
running node -v and npm -v in a terminal/console window. Older
versions produce errors, but newer versions are fine.
source: https://angular.io/guide/quickstart
I have tried installing appium 1.5 released version on windows 7 , 8 and 10 , I am getting the following error
`
appium-chromedriver#2.8.0 install C:\Users\achauhan\AppData\Roaming\npm\no
odules\appium\node_modules\appium-chromedriver
node install-npm.js
Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. Error trying to install Chromedriver binary. Waiting and trying again. info Chromedriver Install Installing Chromedriver version '2.21' for platfor in' and architecture '32' info Chromedriver Install Opening temp file to write chromedriver_win32 to.. info Chromedriver Install Downloading http://chromedriver.storage.googleapis /2.21/chromedriver_win32.zip... info Chromedriver Install Writing binary content to C:\Users\achauhan\AppDat cal\Temp\201621-7524-1cn5kzj\chromedriver_win32.zip... info Chromedriver Install Extracting C:\Users\achauhan\AppData\Local\Temp\20
-7524-1cn5kzj\chromedriver_win32.zip to C:\Users\achauhan\AppData\Local\Temp 621-7524-1cn5kzj\chromedriver_win32 info Chromedriver Install Creating C:\Users\achauhan\AppData\Roaming\npm\nod dules\appium\node_modules\appium-chromedriver\chromedriver\win... info Chromedriver Install Copying unzipped binary, reading from C:\Users\ach n\AppData\Local\Temp\201621-7524-1cn5kzj\chromedriver_win32\chromedriver.exe info Chromedriver Install Writing to C:\Users\achauhan\AppData\Roaming\npm\n modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedrive e... info Chromedriver Install C:\Users\achauhan\AppData\Roaming\npm\node_modules ium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe succe lly put in place
appium-selendroid-driver#1.2.2 install C:\Users\achauhan\AppData\Roaming\n
ode_modules\appium\node_modules\appium-selendroid-driver
node ./bin/install.js
info SelendroidInstaller Ensuring C:\Users\achauhan\AppData\Roaming\npm\node ules\appium\node_modules\appium-selendroid-installer\selendroid\download exi info SelendroidInstaller Downloading Selendroid standalone server version 0. from https://github.com/selendroid/selendroid/releases/download/0.17.0/sele id-standalone-0.17.0-with-dependencies.jar --> C:\Users\achauhan\AppData\Roa \npm\node_modules\appium\node_modules\appium-selendroid-installer\selendroid nload\selendroid-server.jar info SelendroidInstaller Writing binary content to C:\Users\achauhan\AppData ming\npm\node_modules\appium\node_modules\appium-selendroid-installer\selend \download\selendroid-server.jar info SelendroidInstaller Selendroid standalone server downloaded info SelendroidInstaller Determining AndroidManifest location Error: Command 'jar tf C:\Users\achauhan\AppData\Roaming\npm\node_modu \appium\node_modules\appium-selendroid-installer\selendroid\download\se roid-server.jar' errored out: Error: spawn jar ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32 at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17) at ChildProcess. (lib/teen_process.js:31:14) at emitOne (events.js:77:13) at ChildProcess.emit (events.js:169:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12 at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17) npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\node node_modules\npm\bin\npm-cli.js" "install" "-g" "appium" npm ERR! node v4.2.6 npm ERR! npm v2.14.12 npm ERR! code ELIFECYCLE
npm ERR! appium-selendroid-driver#1.2.2 install: node ./bin/install.js npm ERR! Exit status 1 npm ERR!
**npm ERR! Failed at the appium-selendroid-driver#1.2.2 install script 'node . /install.js'. npm ERR! This is most likely a problem with the appium-selendroid-driver pac , npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./bin/install.js npm ERR! You can get their info via: npm ERR! npm owner ls appium-selendroid-driver npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:** npm ERR! C:\Users\achauhan\npm-debug.log`
Verify that %JAVA_HOME%\bin is in PATH - it worked for me after adding this.
(JAVA_HOME contains the JDK root path.)
The issue with installation occurs when installing appium-selendroid-driver#1.2.2.
Install a Java Developer Kit, and this dependency should install correctly.
I was able to install it after following below steps
Uninstall Appium GUI version
Go to c:\Users\xxxxx
use force command like
npm install -f appium
You will find appium gets installed on
C:\Users\XXXXXXX\node_modules.bin
All you have to do is now bind it to an environement varriable
You can then open command prompt and type appium to start it
I came across a post talking about a similar problem. It was fixed by using another server jar file selendroid-standalone-0.17.0-with-dependencies_fixed.jar. It might be worth to try it.
I followed this tutorial to install yeoman, bower, grunt to setup angularjs corodva project. http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower/
as it says i installed everything but still it gives me error! while creating angular project.
I did,
My PC is running windows 8.1 64 bit
Install node.js using windows installer (64 bit)
Install git (selected windows commandline instead git bash while installing)
npm install -g yo grunt-cli bower
I cross checked everything whether it is installed
C:\Windows\system32>yo --version && grunt --version && bower --version
yo - 1.4.7
grunt-cli v0.1.13
bower - 1.4.1
4. npm install -g generator-angular
created a dir in c and installed yo angular
C:\test\yo angular
It asked for sass (i given NO), bootstrap (YES), other angularjs library (NO) then it started installing
then after sometime, it asks that my package.json should overwrite i gave yes
after the few files generated then shows ERR!
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz
npm WARN optional dep failed, continuing form-data#0.1.4
npm ERR! tar.unpack untar error /root/.npm/is-property/1.0.2/package.tgz
npm WARN optional dep failed, continuing request#2.54.0
As Prasanth says, The best way is to do the following:
npm cache clean
double checked whether everything is installed
also try close then re-open cmd as administrator
When angular asks for overwrite package.json, Say n to all
Still faces issue, then try this
make sure Grunt is installed
npm install (it will install missing packages)