错误TS5023:npm启动后未知的编译器选项moduleResolution,lib

时间:2017-03-28 11:13:38

标签: javascript node.js angular npm-install npm-start

我在Angular 2项目中尝试调用npm start时出现问题。控制台告诉我:

$ npm start

  

angular-quickstart@1.0.0预启动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

有什么想法吗?

这很奇怪,因为2天前一切都还好。我基于QuickStart创建了一个新项目。 我打电话给npm install和npm start,我正在使用项目。今天不幸的是,npm开始没有工作,我收到了这个错误:/感谢提前寻求帮助。

0 个答案:

没有答案