You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two issues: 1. after running npm i, got the following error:
Yans-MacBook-Pro:optionA yanhu$ npm i
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: express 2.x series is deprecated
npm WARN deprecated [email protected]: connect 1.x series is deprecated
> [email protected] install /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/node_modules/fsevents
> node install
[fsevents] Success: "/Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] postinstall /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA
> typings install
sh: typings: command not found
npm ERR! Darwin 17.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'typings 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 angular2-socket.io package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-socket.io
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-socket.io
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/npm-debug.log
Yans-MacBook-Pro:optionA yanhu$ npm i
npm ERR! Darwin 17.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! file /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '/' at 8:5
npm ERR! // "postinstall": "typings install",
npm ERR! ^
npm ERR! File: /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! /Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/npm-debug.log
I then removed the line in the package.json:
"postinstall": "typings install",
Then reran npm i and it workd.
I'm not sure whether I'd have issues down the road by removing the line.
2. after running gulp, I got the following error. Haven't been able to resolve it.
Yans-MacBook-Pro:optionA yanhu$ gulp
assert.js:80
throw new assert.AssertionError({
^
AssertionError: Task function must be specified
at Gulp.set [as _setTask] (/Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/node_modules/undertaker/lib/set-task.js:10:3)
at Gulp.task (/Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/node_modules/undertaker/lib/task.js:13:8)
at Object.<anonymous> (/Users/yanhu/Programming/Node/angular/nodeJsExample/nodeJS_examples/ng2_node/optionA/gulpfile.js:50:6)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
The text was updated successfully, but these errors were encountered:
Two issues:
1. after running npm i, got the following error:
I then removed the line in the package.json:
"postinstall": "typings install",
Then reran npm i and it workd.
I'm not sure whether I'd have issues down the road by removing the line.
2. after running gulp, I got the following error. Haven't been able to resolve it.
The text was updated successfully, but these errors were encountered: