angular - npm install error in angular2 -


i begginer in angular2 when type npm install got these errors:

npm warn optional skipping failed optional dependency /chokidar/fsevents: npm warn notsup not compatible operating system or architecture: fsevents@1.0.14 npm err! windows_nt 10.0.10586 npm err! argv "c:\\program files\\nodejs\\node.exe" "c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm err! node v6.3.0 npm err! npm  v3.10.3 npm err! file c:\users\sidahmed\appdata\roaming\npm-cache\chalk\1.1.3\package\package.json npm err! code ejsonparse  npm err! failed parse json npm err! unexpected token '\u0000' @ 1:1 npm err! npm err! ^ npm err! file: c:\users\sidahmed\appdata\roaming\npm-cache\chalk\1.1.3\package\package.json npm err! failed parse package.json data. npm err! package.json must actual json, not javascript. npm err! npm err! not bug in npm. npm err! tell package author fix package.json file. json.parse  npm err! please include following file support request: npm err!     c:\users\sidahmed\documents\angular2\npm-debug.log 

package.json file:

{   "name": "ng2-test",   "version": "1.0.0",   "scripts": {     "start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",         "tsc": "tsc",     "tsc:w": "tsc -w",     "lite": "lite-server",     "typings": "typings",     "postinstall": "typings install"    },   "license": "isc",   "dependencies": {     "angular2": "2.0.0-beta.7",     "systemjs": "0.19.22",     "es6-promise": "^3.0.2",     "es6-shim": "^0.33.3",     "reflect-metadata": "0.1.2",     "rxjs": "5.0.0-beta.2",     "zone.js": "0.5.15"   },   "devdependencies": {     "concurrently": "^2.0.0",     "lite-server": "^2.1.0",     "typescript": "^1.7.5",     "typings":"^0.6.8"   } } 

i tried npm install angular2@2.0.0-alpha.32 , when type npm start have these error messages:

> ng2-test@1.0.0 start c:\users\sidahmed\documents\angular2 > concurrent "npm run tsc:w" "npm run lite"  'concurrent' n’est pas reconnu en tant que commande interne ou externe, un programme exĂ©cutable ou un fichier de commandes.  npm err! windows_nt 10.0.10586 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.3.0 npm err! npm  v3.10.3 npm err! code elifecycle npm err! ng2-test@1.0.0 start: `concurrent "npm run tsc:w" "npm run lite" ` npm err! exit status 1 npm err! npm err! failed @ ng2-test@1.0.0 start script 'concurrent "npm run tsc:w" "npm run lite" '. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem ng2-test package, npm err! not npm itself. npm err! tell author fails on system: npm err!     concurrent "npm run tsc:w" "npm run lite" npm err! can information on how open issue project with: npm err!     npm bugs ng2-test npm err! or if isn't available, can info via: npm err!     npm owner ls ng2-test npm err! there additional logging output above.  npm err! please include following file support request: npm err!     c:\users\sidahmed\documents\angular2\npm-debug.log 

can try following steps-

  1. delete node_modules folder project.
  2. run 'npm cache clean' command.
  3. run 'npm install' command.

i have verified package.json on http://jsonlint.com/ , looks valid json-

package.json validattion

as per provided package.json using "angular2": "2.0.0-beta.7" old version. current version of angular2 2.0.0-rc.4. can find more information here -https://angular.io/guide/quickstart

see if helps.


Comments