I'm Wira and I'm a newbie
So recently i tried to install bower on my laptop and there are some errors like this:
C:\Users\wiraxie>npm install g- bower
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
node_modules\\npm\\bin\\npm-cli.js" "install" "g-" "bower"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect
npm ERR! Error: connect EACCES 151.101.76.162:443
npm ERR! at Object.exports._errnoException (util.js:873:11)
npm ERR! at exports._exceptionWithHostPort (util.js:896:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1077:14)
npm ERR! { [Error: connect EACCES 151.101.76.162:443]
npm ERR! code: 'EACCES',
npm ERR! errno: 'EACCES',
npm ERR! syscall: 'connect',
npm ERR! address: '151.101.76.162',
npm ERR! port: 443 }
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:\Users\wiraxie\npm-debug.log
Can Anyone help me?
Thanks in advance :)
Install bower with
npm install -g bower
and make sure your run the Command Prompt as an Administrator
Related
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! stack:
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! 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! /home/andybod/.npm/_logs/2021-11-01T08_46_14_576Z-debug.log
You tried to write to the folder where your user doesn't have such permissions (/usr)
Just use sudo for this purpose
sudo npm install -g yarn
I get the following errors when I run docker build -t swagger-ui-builder:
npm ERR! Error: ENOENT, lstat '/build/node_modules/gulp-connect/node_modules/connect/node_modules/express-session/node_modules/crc/lib/crc16_ccitt.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 4.1.19-boot2docker
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /build
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /build/node_modules/gulp-connect/node_modules/connect/node_modules/express-session/node_modules/crc/lib/crc16_ccitt.js
npm ERR! fstream_path /build/node_modules/gulp-connect/node_modules/connect/node_modules/express-session/node_modules/crc/lib/crc16_ccitt.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/repeating
npm ERR! Error: ENOENT, lstat '/build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/semver/test/major-minor-patch.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 4.1.19-boot2docker
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /build
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/semver/test/major-minor-patch.js
npm ERR! fstream_path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/semver/test/major-minor-patch.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/loud-rejection/node_modules/signal-exit/test/fixtures/parent.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 4.1.19-boot2docker
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /build
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/loud-rejection/node_modules/signal-exit/test/fixtures/parent.js
npm ERR! fstream_path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/loud-rejection/node_modules/signal-exit/test/fixtures/parent.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, utime '/build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 4.1.19-boot2docker
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /build
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/package.json
npm ERR! fstream_path /build/node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
I am using Mac OS X. I try to install swagger-ui to apply to our project. after I downloaded swagger-ui to my local and cd to swagger-ui folder and "run $ docker build -t swagger-ui-builder ." and I got so many errors above.
I've found using this pre-built image works pretty easy:
docker run -d --name swagguer-ui -p 8888:8888 sjeandeaux/docker-swagger-ui
Or with your own default API URL:
docker run -d --name swagger-ui -p 8888:8888 -e "API_URL=YOUR_URL" sjeandeaux/docker-swagger-ui
I want to install Plugman in iOS for managing the Phonegap plugins. I am using the below command in Terminal.
npm install -g plugman
But I am getting the below error,
npm ERR! Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/gtmac/.npm/npm/1.3.4/package/package.json',
npm ERR! parent: 'plugman' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "plugman"
npm ERR! cwd /Users/gtmac/Documents/Sinu/Insightix
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/gtmac/.npm/npm/1.3.4/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/gtmac/Documents/Sinu/Insightix/npm-debug.log
npm ERR! not ok code 0
I solved the issue by running the command after executing 'sudo -s'
$ sudo -s
$ npm install -g plugman
I am trying to install Bower. Need Bower to install zurb Foundation. I am a newbie in this, a UX designer learning the frontend.
npm install - g bower
npm ERR! Error: not_found document not found: -
npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:308:14)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:246:65)
npm ERR! at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:236:22)
npm ERR! at Request.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1142:14)
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1096:12)
npm ERR! at IncomingMessage.emit (events.js:117:20)
npm ERR! at _stream_readable.js:944:16
npm ERR! at process._tickCallback (node.js:442:13)
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/npm/npm/issues>
npm ERR! System Darwin 12.6.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-" "g" "bower"
npm ERR! cwd /Users/anandka
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/anandka/npm-debug.log
npm ERR! not ok code 0
Thanks in advance :)
You have a typo, you must remove the space before the g option.
npm is not finding package -, so:
npm install -g bower
I am trying to create cordova using the terminal but I am getting following error.
So far I know this is the only user account which we had created and intact should
be the root account
install -g cordova
npm http GET https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/cordova
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/cordova'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/cordova']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/cordova',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/cordova',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/anantmac
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /usr/local/lib/node_modules/cordova
npm ERR! fstream_path /usr/local/lib/node_modules/cordova
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/cordova'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/anantmac/npm-debug.log
npm ERR! not ok code 0
Anants-MacBook-Air:~ anantmac$
Sometimes when installing node packages you need to use sudo so everything can write to the paths required, try this:
sudo npm install -g cordova