Having errors in installing yeoman - angularjs

having this error..
I have installed node using brew.
Trying to setup a angular project but by running commands dependencies folders are not getting created and giving this error.
- node-libs-browser node_modules/webpack/node_modules/node-libs-browser
- watchpack node_modules/webpack/node_modules/watchpack
- chokidar node_modules/webpack/node_modules/watchpack/node_modules/chokidar
npm ERR! Darwin 14.1.0
npm ERR! argv "/usr/local/Cellar/node/6.3.1/bin/node" "/usr/local/bin/npm" "install" "--save-dev" "webpack#^1.4.0"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! path /Users/temp/Desktop/node_modules/webpack
npm ERR! code ENOTEMPTY
npm ERR! errno -66
npm ERR! syscall rename
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/temp/Desktop/node_modules/webpack' -> '/Users/temp/Desktop/node_modules/.webpack.DELETE'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/temp/Desktop/faltu/npm-debug.log
how to solve this?

Project Setup (yeoman gulp Angular)
Install node (https://nodejs.org/en/)
Update npm
npm install npm -g
Install yo, gulp, and bower
npm install -g yo
npm install -g gulp
npm install -g bower
Install generator-gulp-angular
npm install -g generator-gulp-angular
Create a new project folder and open command line or terminal in that folder.
Run the yo generator to create project structure and answer the questions that follow
yo gulp-angular [app-name]

Related

Issues Installing Vue-Native with library vue-native-scripts

I am trying to create a project with Vue-Native following the instructions in the documentation:
https://vue-native.io/docs/installation.html
I am trying it with Expo and Vue-React, and in both cases I have the same error when I run "npm start":
Failed to construct transformer: Error: Cannot find module 'vue-native-scripts'
I try to install it with npm install vue-native-scripts --save-dev and I have the error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vuenativetest#0.0.1
npm ERR! Found: react#16.13.1
npm ERR! node_modules/react
npm ERR! react#"16.13.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"17.0.1" from react-native#0.64.0
npm ERR! node_modules/react-native
npm ERR! react-native#"^0.64.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/miguel/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/miguel/.npm/_logs/2021-04-04T10_52_07_169Z-debug.log
I updated all libraries: React, React-Native, npm, Node, etc.
But I have the same error.
I am currently working on a vue-native project and encountered this problem when I started.
This seems to be a problem about the dependencies of a vue-native project having sub dependencies of different versions from other dependencies. When NPM sees this it just freaks out.
My solution is to start using yarn! Install it by the following:
$ npm i -g yarn
After its installed, its advised that you delete the project and redo the vue-native-cli init command so it can use yarn from there, but you can also just directly use the following command without deleting the project:
$ yarn install vue-native-scripts

mac sudo npm install -g protractor Error 404

When I run sudo npm install -g protractor, got the error, looks like there's no that folder/files. Is there anyone who knows how to solve the problem? Thanks very much :)
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "protractor"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code E404
npm ERR! 404 no such package available : #types/node
npm ERR! 404
npm ERR! 404 '#types/node' is not in the
npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'protractor'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm install screenshot
This is reproducible on node 6.9.2. I believe it is an error in npm for this version of node.
❯ nvm install 6.9.2 ⏎
Downloading https://nodejs.org/dist/v6.9.2/node-v6.9.2-darwin-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
Now using node v6.9.2 (npm v3.10.9)
❯ npm i - g #types/node
npm ERR! addLocal Could not install /Users/cnishina/-
npm ERR! Darwin 16.3.0
npm ERR! argv "/Users/cnishina/.nvm/versions/node/v6.9.2/bin/node" "/Users/cnishina/.nvm/versions/node/v6.9.2/bin/npm" "i" "-" "g" "#types/node"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path /Users/cnishina/-
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/cnishina/-'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/cnishina/-'
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! /Users/cnishina/npm-debug.log
After installing 6.9.3, the error goes away:
❯ nvm install 6.9.3
Downloading https://nodejs.org/dist/v6.9.3/node-v6.9.3-darwin-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
npm i -g #tNow using node v6.9.3 (npm v3.10.10)
❯ npm i -g #types/node
/Users/cnishina/.nvm/versions/node/v6.9.3/lib
└── #types/node#7.0.1
I also suggest installing the latest node 6. At the time of this post, it is node 6.9.4. I have checked installing #types/node also works for node 6.9.4.
Some people with the same problem found that decreasing the version to 4.0.4 helped. Buts seems a frequent error. Still not a cool solution, but seems to work for some.

How to install Blur Admin?

I have been trying to install blur-admin via (git clone https://github.com/akveo/blur-admin.git). But when I install it from git bash as mentioned in the installation guide it shows the following error:
bower ECONFLICT Unable to
find suitable version for angular
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" "install"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! blur_admin#1.2.0 postinstall: bower install npm ERR! Exit
status 1 npm ERR! npm ERR! Failed at the blur_admin#1.2.0 postinstall
script 'bower install'.
npm ERR! This is most likely a problem with the blur_admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs blur_admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm ERR! npm owner ls blur_admin
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\blur-admin\npm-debug.log
The issue is because Bower is not installed in your Windows Machine.
Try to install bower before installing this AngularJs template.
Use the following command to install bower:
npm install -g bower
Also check if Gulp - Task automation tool is install or not.
Use the following command to install the same:
npm install -g gulp
Now use npm install to install the project and its Package Dependencies.
To run the application:
gulp serve
Sorry I got a little bit late.
Did you try to move the /bower_components/ folder from the /client/ directory to your root project directory? That worked for me.
First
npm i -g npm
Then delete everything in node_modules. When those are deleted, cd to your directory and
npm install
Worked for me. If you are on OSX or Linux, use sudo.
If you are on Windows, make sure you're running as administrator.
The issue is from Bower, as Bower is not installed into the system.
First install the bower by following:
npm install -g bower
Then run the app by :
gulp serve

npm-install throws exception for angular-seed

I am trying to install and configure angular-seed in my webstorm IDE. After creating project and downloading angular-seed i tried to run npm install
command to install all the dependencies like the page says (https://github.com/angular/angular-seed). But i found the following error when trying to run the command. the error is given bellow:
bower angular-route#~1.4.0 ENOGIT git is not installed or not in the PATH
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" "install"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! angular-seed#0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed#0.0.0 postinstall script 'bower install'.
npm ERR! 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! bower install
npm ERR! 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:\Users\User\WebstormProjects\untitled\npm-debug.log
I tried to install bower first by running the command npm install -g bower and then running another command bower install angular but it does not working either. It shows another error:
bower angular#~1.4.0 ENOGIT git is not installed or not in the PATH
Can anyone help me to find the solution of the problem. Please let me know where i have done wrong.
Do you have installed git?
If you run cmd.exe and write
git
what do you see? If is git installed correctly in global path, you see git help.
If git is installed only as Git Bash, you can run bower in Git Bash.
Alternatively you can (re)install git with this option, then will be git available in command promt (global path)

Installing yeoman on mac

I'm trying to install yeoman on my mac to develop an angular app.
This is my situation:
node --version && npm --version
v0.10.33
1.4.28
and this is the result of:
sh-3.2# npm install --global yo bower grunt-cli
/var/root/.npm-packages/bin/grunt -> /var/root/.npm-packages/lib/node_modules/grunt-cli/bin/grunt
/var/root/.npm-packages/bin/bower -> /var/root/.npm-packages/lib/node_modules/bower/bin/bower
/var/root/.npm-packages/bin/yo -> /var/root/.npm-packages/lib/node_modules/yo/cli.js
yo#1.3.3 postinstall /var/root/.npm-packages/lib/node_modules/yo
yodoctor
env: node: No such file or directory
npm ERR! yo#1.3.3 postinstall: yodoctor npm ERR! Exit status 127 npm
ERR! npm ERR! Failed at the yo#1.3.3 postinstall script. npm ERR!
This is most likely a problem with the yo package, npm ERR! not with
npm itself. npm ERR! Tell the author that this fails on your system:
npm ERR! yodoctor npm ERR! You can get their info via: npm ERR!
npm owner ls yo npm ERR! There is likely additional logging output
above. npm ERR! System Darwin 14.0.0 npm ERR! command "node"
"/usr/local/bin/npm" "install" "--global" "yo" "bower" "grunt-cli" npm
ERR! cwd /Users/francobasilico npm ERR! node -v v0.10.33 npm ERR! npm
-v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0
I've already tried to find the cli.js file but I find lot of them.
Can anyone help me?
Thanks
I had the same error and my problem was that I install yo with sudo.
Follow this guide and install yo without sudo privilege. That should fix your problem.
I guess you have problem with your node version. You should update to 6 or higher.
Yoeman Install prerequisites
Before installing the Fountain Webapp Generator, you will need the following:
Node.js 6 or higher
npm 3 or higher (which comes bundled with Node)
Git
Yoeman Setup

Resources