ngm-cli icon indicating copy to clipboard operation
ngm-cli copied to clipboard

ENOENT: no such file or directory, open 'src/dist/package.json'

Open jaumard opened this issue 7 years ago • 1 comments

Hi,

I'm using this command: ngm build -p src --clean

But it fail to clean the dist folder properly because I have this error : ENOENT: no such file or directory, open 'src/dist/package.json'

Here the full log:

ng2-dashboard jaumard$ npm run ngm

> [email protected] ngm /Users/jaumard/LISAProjects/ng2-dashboard
> ngm build -p src --clean

[18:38:30] Clean dist folders [started]
[18:38:30] Cleaning src/dist [started]
[18:38:30] Cleaning src/dist [completed]
[18:38:30] Cleaning src/dist [started]
[18:38:30] Cleaning src/dist [completed]
[18:38:30] Clean dist folders [completed]
[18:38:30] Copy md files and license [started]
[18:38:30] Copy md files and license [completed]
[18:38:30] Build package.json files [started]
[18:38:30] Build package.json files [failed]
[18:38:30] → ENOENT: no such file or directory, open 'src/dist/package.json'

ENOENT: no such file or directory, open 'src/dist/package.json'

If I look the dist folder package.json is still here with LICENSE and README.md. If I delete them then it works great.

I'm using node v7.9.0 on Mac OS X

Thanks for this module, it save me a lot of trouble packing my module ! :D

jaumard avatar Apr 28 '17 16:04 jaumard