error TS5023: Unknown compiler option moduleResolution, lib after npm start - javascript

I have a issue when I try call npm start in Angular 2 project. Console show me:
$ npm start
angular-quickstart#1.0.0 prestart C:\Users\Jan\Desktop\Study\ZTW lab\Ang\myApp
npm run build
angular-quickstart#1.0.0 build C:\Users\Jan\Desktop\Study\ZTW lab\Ang\myApp
tsc -p src/
**error TS5023: Unknown compiler option 'moduleResolution'.**
**error TS5023: Unknown compiler option 'lib'.**
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.10.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart#1.0.0 build: `tsc -p src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart#1.0.0 build script 'tsc -p src/'.
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-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc -p src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Jan\Desktop\Study\ZTW lab\Ang\myApp\npm-debug.log
npm ERR! Windows_NT 10.0.14393
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.10.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart#1.0.0 prestart: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart#1.0.0 prestart script 'npm run build'.
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-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Jan\Desktop\Study\ZTW lab\Ang\myApp\npm-debug.log
Any idea?
It's very strange because 2 days ago everything was ok. I created a new project based on the QuickStart .
I called npm install and npm start and I was working with project. Today unluckily npm start don't work and I get this error :/ Thanks advance for help.

Related

node inspector installation error

While installing node inspector I am getting this error -
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "node-inspector"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! v8-debug#0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug#0.7.7 install script 'node-pre-gyp install --fal
lback-to-build'.
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 v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls v8-debug
npm ERR! There is likely additional logging output above.
What could be the issue?

Error message installing npm

I get the following message when I type npm install from the root directory
$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.0
npm ERR! npm v2.14.20
npm ERR! path /package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open
npm ERR! package.json ENOENT: no such file or directory, open '/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.0
npm ERR! npm v2.14.20
npm ERR! path npm-debug.log.3965331654
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.3965331654'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, open 'npm-debug.log.3965331654']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.3965331654' }
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! /npm-debug.
Probably you are trying to run this code in empty directory. This is not right. npm install command installs all packages and dependencies which are listed in package.json file.
If you want to start npm project and make npm install run successfully, first run npm init command. This will create you package.json and there you will be able to enter all the packages and deps. Then you will be able to run npm install
Here is a tutorial
And one more

npm install: install Couldn't read dependencies

I have started to learn Angular JS. I am going through this, that is building simple phonecat app
I am following the steps. Node.js downloaded.
Trying to execute this command: npm install
Error occured:
C:>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path C:\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! package.json ENOENT, open 'C:\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directo
ry.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! Uncaught, unspecified "error" event.
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! C:\npm-debug.log
C:\>
Before executing the command npm install
Execute this cd myproject and then execute this: npm install
Its solved. Thanks.
It looks like you haven't put the package.json file in root directory.
If you are starting fresh, you'll need to clone this repo. https://github.com/angular/angular-phonecat
Like Bilhan A said: you need to change to the folder where you cloned the project to.
From your question I am assuming you are new to programming and want to learn Angularjs primarily. Node.js is not needed for this. If you really want to learn Angular, I recommend Tutorials like this one, which do not require node.js. When you understood how it works, come back to node.js and combine them.
name field in package.json should be the same with name of your project directory.
If this is the error displayed then simply update the npm,i face this issue now that's why i update here,it might be help some one
$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe"
"C:\\Program F iles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path C:\Users\joy\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! package.json ENOENT: no such file or directory, open
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\joy\Desktop\TEMP\node\chatsys\npm-debug.log

Expresso not installing on Windows 7

Having a problem install Expresso on my machine similar to this
windows 7 x64
node.js version: 0.8.0
npm version: 1.1.32
> npm install expresso
npm http GET https://registry.npmjs.org/expresso
npm http 304 https://registry.npmjs.org/expresso
> expresso#0.9.2 preinstall C:\node_modules\expresso
> make deps/jscoverage/node-jscoverage
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x0x770843f9)
npm ERR! expresso#0.9.2 preinstall: `make deps/jscoverage/node-jscoverage`
npm ERR! `cmd "/c" "make deps/jscoverage/node-jscoverage"` failed with 255
npm ERR!
npm ERR! Failed at the expresso#0.9.2 preinstall script.
npm ERR! This is most likely a problem with the expresso package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make deps/jscoverage/node-jscoverage
npm ERR! You can get their info via:
npm ERR! npm owner ls expresso
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\n
\\npm\\bin\\npm-cli.js" "install" "expresso"
npm ERR! cwd C:\
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.32
npm ERR! code ELIFECYCLE
npm ERR! message expresso#0.9.2 preinstall: `make deps/jscoverage/node-jscoverage`
npm ERR! message `cmd "/c" "make deps/jscoverage/node-jscoverage"` failed with 255
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm ERR! not ok code 0
any help would be greatly appreciated.
clone the module using git clone command and use the code locally.

Installing grunt globally failed and I can't find it on npmjs.org

I'm getting this error when I run npm install - ideas on why this might be happening?
I've never had a problem installing other libraries globally and I can't find grunt on http://search.npmjs.org/
npm install -g grunt
npm ERR! Error: Not found: grunt#''
npm ERR! Valid install targets:
npm ERR! ["latest","devel"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:410:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:403:17
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7)
npm ERR! at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt"
npm ERR! cwd /Users/**
npm ERR! node -v v0.4.10
npm ERR! npm -v 1.0.103
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/**/npm-debug.log
npm not ok
I ended up just having to upgrade node and npm

Categories

Resources