Errors using Yeoman - angularjs

I am trying to set up an AngularJS site using Yeoman:
$ yo angular
The installation is partly successful. The directory is being populated with all those files, but there are also several errors that left me wondering if the init was complete:
npm ERR! Error: EACCES, symlink '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer'
npm ERR! { [Error: EACCES, symlink '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.2.0-56-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/username/Development/LearnAngularJS
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path ../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/username/Development/LearnAngularJS/npm-debug.log
npm ERR! not ok code 0
npm ERR! Error: EACCES, symlink '../karma/bin/karma'
npm ERR! { [Error: EACCES, symlink '../karma/bin/karma'] errno: 3, code: 'EACCES', path: '../karma/bin/karma' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.2.0-56-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/username/Development/LearnAngularJS
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path ../karma/bin/karma
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../karma/bin/karma'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/username/Development/LearnAngularJS/npm-debug.log
npm ERR! not ok code 0
I am not sure why I'd need to run the init as root, that doesn't seem right. Where exactly is it looking (and failing) for those paths "../grunt-autoprefixer/node_modules", "../karma/bin/karma"? And, of course, what should I do to fix this behaviour?

Is this inside a VirtualBox or Vagrant shared folder? I got the same error and found it was because VirtualBox 4.18+ does not support symlinks inside shared folders:
https://www.virtualbox.org/ticket/10085

Related

playwright promise error at azure devops pipeline

I have been deploying react app as static web site using azure devops
for a while, recently node and npm versions upgraded from then on I m
facing these deprectated package errors in pipeline. Any leads to
possible solution to overcome these errors
npm ERR! code 1
npm ERR! path /working_dir/Todo/Todo.Client/node_modules/playwright
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/process/promises:288
npm ERR! triggerUncaughtException(err, true /* fromPromise */);
npm ERR! ^
npm ERR!
npm ERR! [Error: EACCES: permission denied, mkdir '/root/.cache/ms-playwright'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/root/.cache/ms-playwright'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.2.0

error while "npm install" command in windows

I have installed nodejs v4.4.5LTS and run command line and below error is occurs. please help me
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! angular-seed#0.0.0 prestart: `npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed#0.0.0 prestart script 'npm install'.
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 angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\xampp\htdocs\angular\npm-debug.log
C:\xampp\htdocs\angular>

npm install gives error: js2coffee#0.2.7 preinstall: `npm run-script ./cyclic.js`

I do have npm(3.6.0), node(v5.6.0) installed on ubuntu 14.04.
I am getting below error while I am running npm install :
npm ERR! Linux 3.13.0-77-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! js2coffee#0.2.7 preinstall: `npm run-script ./cyclic.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js2coffee#0.2.7 preinstall script 'npm run-script ./cyclic.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 js2coffee package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run-script ./cyclic.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js2coffee
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js2coffee
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/sachin/angular_projects/demo/npm-debug.log
Anyone faced this issue?

npm start is throwing the following error on windows

Hello I use Windows 10 and recently installed mean. However when i start npm using npm start command, i get the following error. I even installed express.
C:\>npm start
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! path C:\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! enoent ENOENT, open 'C:\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
As it says, it's not a problem with npm itself.
It appears that npm is not able to access your package.json, or it's not present at all at the given path.
Check for the path of pacakge.json.
Also, you should do npm init before to create a valid package.json file, if it's not present.

Yeoman angularjs generator broken

I just create an empty directory called "assets" with my php lavarel project folder and issue the following command -> yo angular, then in the terminal, I was asked include sass/compass, bootstrap etc and start installing this generator. somehow, I got lots of errors that i have no ideas what that cause. I need some help and here are the errors.
npm npm ERR!http Error: ENOTEMPTY, rmdir 'xxx/app/assets/node_modules/grunt/lib'
GET https://registry.npmjs.org/optimist
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 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd xxx/app/assets
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path xxx/app/assets/node_modules/grunt/lib
npm ERR! code ENOTEMPTY
npm ERR! errno 53
npm ERR! Error: ENOENT, open 'xxx/app/assets/node_modules/grunt/package.json'
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 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd xxx/app/assets
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path xxx/app/assets/node_modules/grunt/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! xxx/app/assets/npm-debug.log
npm ERR! not ok code 0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! xxx/assets/npm-debug.log
npm ERR! not ok code 0
Looks like your user don't own your project folder. chown and chmod your folder so it work with the your user account.

Resources