nodemon installation problem in nodejs using npm - nodemon

npm ERR! file C:\WINDOWS\system32\cmd.exe;C:\Program
Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! path C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;
C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! nodemon#1.18.10 postinstall: node bin/postinstall || exit 0
npm ERR! spawn C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin; ENOENT
npm ERR!
npm ERR! Failed at the nodemon#1.18.10 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\gourav\AppData\Roaming\npm-cache_logs\2019-03-21T00_36_51_224Z-debug.log

first show us how you are installing it, and try run it as admin.

Related

I am not able to install nodemon package

Not able to install nodemon package, here are the error messages.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/atulyadav/.npm/_logs/2021-08-31T18_23_33_532Z-debug.log
(base) atulyadav#ATULs-MacBook-Pro my-express-server %
You can do two things
change the permission of /usr/local/lib/node_modules folder or
Try sudo npm install nodemon - g
Use sudo npm install nodemon -g , this should resolve the issue.
Note : It will prompt you to enter your password, you might not see the "letters" you are typing, but keep on typing and hit enter.

Libpostal docker does not run on AWS

I am using libpostal for address parsing.Here is the git link: https://github.com/pasupulaphani/libpostal-docker
This docker image runs perfectly fine on my local machine but once I try and run it on EC2 it fails with below error.
Killed
npm ERR! Linux 4.14.138-114.102.amzn2.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! node-zeromq#1.0.0 start: `DEBUG=libpostal:zeromq* node server.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the node-zeromq#1.0.0 start script 'DEBUG=libpostal:zeromq* node server.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 node-zeromq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! DEBUG=libpostal:zeromq* node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-zeromq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2019-10-03T00_30_06_303Z-debug.log
I did reinstall the latest versions of zerorpc, nodejs and npm on the EC2 instance. But still cannot figure out the error.

Laravel 5.5 API Authentication (Passport) - cross-env: not found error, when i run npm run dev

I have tried to implement laravel passport authentication in my project, but it's not working. Initially, i have installed laravel5.5 with other configuration and file permissions all the stuff.
To implement passport authentication I have followed laravel documentation Document Url
Following steps, I have done,
composer require laravel/passport
php artisan migrate
php artisan passport:install
I have added this line App\User
use Laravel\Passport\HasApiTokens;
use HasApiTokens, Notifiable;
Routes Added in AuthServiceProvider file inside the boot function
Passport::routes();
Inside the config/auth.php file, I have changed API driver as passport
php artisan vendor:publish --tag=passport-components
Inside this file resources/assets/js/app.js
Vue.component(
'passport-clients',
require('./components/passport/Clients.vue')
);
Vue.component(
'passport-authorized-clients',
require('./components/passport/AuthorizedClients.vue')
);
Vue.component(
'passport-personal-access-tokens',
require('./components/passport/PersonalAccessTokens.vue')
);
npm run dev
When running this command I'm getting an error
$ npm run dev
# dev /var/www/html/local/laravel5.5
npm run development
# development /var/www/html/local/laravel5.5
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
sh: 1: cross-env: not found
npm ERR! Linux 4.4.0-98-generic
npm ERR! argv "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/node" "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/npm" "run" "development"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! # development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the # development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.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 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/local/laravel5.5/npm-debug.log
npm ERR! Linux 4.4.0-98-generic
npm ERR! argv "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/node" "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/npm" "run" "dev"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! # dev: npm run development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev script 'npm run development'.
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 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run development
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/local/laravel5.5/npm-debug.log
You must run in cmd/terminal, from your project folder
npm install --save
and then
npm run dev

Unable to install Ember.js

I am trying to install Ember CLI but I am getting error, I am not getting what exactly I need to do.
I am running the below command to install Ember CLI in my C drive:
npm install -g ember-cli
I am getting the below error:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! path C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! Error: EPERM, open 'C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, open 'C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
UPDATED:
C:\>npm install -g ember-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
I have solved the problem. It was mainly because of the network issues. I have enabled a proxy to be used by node for downloading the files.
This is happening because to install something globally with npm you have to be root or an administrator. In windowns right click on the terminal app and click the run as administrator option. On Mac and linux you would just put sudo before the command

Npm install pomelo errors VC++ 2010?

I tried to run
npm install pomelo -g
I got this:
...
npm http 304 https://registry.npmjs.org/pomelo-schedule/0.3.4
npm http 304 https://registry.npmjs.org/pomelo-logger/0.1.2
npm http 304 https://registry.npmjs.org/ws/0.4.25
npm http 304 https://registry.npmjs.org/node-bignumber/1.2.1
npm http 304 https://registry.npmjs.org/pomelo-protobuf/0.4.0
npm http 304 https://registry.npmjs.org/cliff/0.1.8
npm http 304 https://registry.npmjs.org/commander/2.0.0
npm http GET https://registry.npmjs.org/log4js/0.6.7
npm http GET https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/socket.io-client/0.9.16
npm http GET https://registry.npmjs.org/ndump
npm http 304 https://registry.npmjs.org/log4js/0.6.7
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/pomelo-loader/0.0.5
npm http GET https://registry.npmjs.org/stream-pkg/0.0.5
npm http GET https://registry.npmjs.org/node-uuid/1.4.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
> toobusy#0.2.2 install C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy
> node-gyp rebuild
C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy>node "D:\Logiciels installés\nodejs\node_modules
\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/ndump
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.16
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/pomelo-loader/0.0.5
npm http 304 https://registry.npmjs.org/stream-pkg/0.0.5
> ndump#0.0.2 install C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump
> node-gyp rebuild
C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump>node "D:\Logiciels insta
llés\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/node-uuid/1.4.0
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\re
dis\diff_multi_bench_output.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\redis\diff_multi_be
nch_output.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\redis\diff_
multi_bench_output.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-p
kg'
File exists: C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
Move it away, and try again.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:171:23
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\mkdirp\index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modu
les\log4js\test\categoryFilter-test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modules\log4js\test\c
ategoryFilter-test.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modules\log4j
s\test\categoryFilter-test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winsto
n\lib\winston\common.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winston\lib\winston\com
mon.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winston\lib\win
ston\common.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\p
omelo-loader\README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\pomelo-loader\READ
ME.md
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\pomelo-loa
der\README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket
.io\node_modules\policyfile\doc\index.html'
npm ERR! error rolling back pomelo#0.8.1 { [Error: EPERM, unlink 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\no
de_modules\socket.io\node_modules\policyfile\doc\index.html']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'C:\\Users\\Vadorequest\\AppData\\Roaming\\npm\\node_modules\\pomelo\\node_modules\\socket.io\
\node_modules\\policyfile\\doc\\index.html' }
npm ERR! toobusy#0.2.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the toobusy#0.2.2 install script.
npm ERR! This is most likely a problem with the toobusy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls toobusy
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\po
licyfile\doc\index.html'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\policyfile\doc\inde
x.html
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\policyfile\
doc\index.html
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules
\socket.io-client\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\socket.io-client
\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\socket.i
o-client\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_module
s\log4js\.bob\instrumented\test\dateFileAppender-test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_modules\log4js\.bob\ins
trumented\test\dateFileAppender-test.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_modules\log4js\
.bob\instrumented\test\dateFileAppender-test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\n
ode-uuid\uuid.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\node-uuid\uuid.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\node-uuid\
uuid.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
My computer is new and I thing it's because of C++ redistibuable but I just installed VC++ 2010 redistribuable and reboot my computer. Any idea? Thx.
Use:
PYTHONPATH=C:\Python
PYTHON=%PYTHONPATH%\python.exe
Instead of
PYTHON=C:\Python\python.exe
Will fix Python.
I also installed Visual Studio 2012 Pro (but express 2010 should work too)
VC++ fixed.
Pomelo installed correctly then.
Thx for help!
it worked for me to remove the folder C:\Users\YourName\.node-gyp and of course this is for windows only.
Make sure you have all the required software to run node-gyp:
https://github.com/TooTallNate/node-gyp
You can configure version of Visual Studio used by gyp via an environment variable>
Examples:
set GYP_MSVS_VERSION=2012 for Visual Studio 2012
set GYP_MSVS_VERSION=2013e (the 'e' stands for 'express edition')
For the full list see
- https://github.com/joyent/node/blob/v0.10.29/tools/gyp/pylib/gyp/MSVSVersion.py#L209-294
This is still painful for Windows users of NodeJS as it assumes you have a copy of Visual Studio installed and many end users will never have this. So I'm lobbying Joyent to the encourage them to include web sockets as part of CORE node and also to possible ship a GNU gcc compiler as part of NodeJS install so we can permanently fix this problem.
Feel free to add your vote at:
https://github.com/joyent/node/issues/8005#issuecomment-50545326
You don't need to install Pomelo in Windows; I tried but I failed. Another solution is clone the folder (lib) that Pomelo was installed in in Ubuntu, and paste it to the node_modules folder of your project, as shown here:
And now you can clone Pomelo sample projects to try it. I had success with this solution.
Here is Pomelo that was compiled from the Ubuntu that I used:
Pomelo folder compiled on Ubuntu