Mac OSX El capitan | angular-cli: 0.1.0 | node: 5.4.0 | os: darwin x64
I try to install a 3rd party npm module according to the angular-cli wiki: https://github.com/
FWIW, as of today (1.0.0-beta.26
), adding the scripts
entry is not necessary anymore.
Simply add the proper entries to package.json
using:
npm i --save lodash
npm i --save-dev @types/lodash
Then, in your TypeScript code, use:
import * as _ from 'lodash';
The code will run just fine.
In my case, actually adding the scripts
entry was causing issues.