tentei instalar uma versao antiga do angular-cli com o comando
npm install -g @angular/cli@1.5.3
Escolhi essa versao porque vi um projeto na versao 5.0.0 e no package.json estava esta versao angular-CLI
mas nao consigo, ocorreu o erro (uso linux debian)
Ja tentei inumeras versoes do npm
root@toshib:/home/ulisses/Documentos/pacote/pacote/workspace_angular/angular-csa/angularCsa# npm install -g @angular/cli@1.5.3
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
/root/.nvm/versions/node/v10.0.0/bin/ng -> /root/.nvm/versions/node/v10.0.0/lib/node_modules/@angular/cli/bin/ng
> node-sass@4.9.3 install /root/.nvm/versions/node/v10.0.0/lib/node_modules/@angular/cli/node_modules/node-sass
> node scripts/install.js
sh: 1: node: Permission denied
> uglifyjs-webpack-plugin@0.4.6 postinstall /root/.nvm/versions/node/v10.0.0/lib/node_modules/@angular/cli/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
sh: 1: node: Permission denied
npm WARN @angular-devkit/schematics@0.0.52 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.
npm WARN @schematics/angular@0.1.17 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/@angular/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.3 (node_modules/@angular/cli/node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.3 install: `node scripts/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! uglifyjs-webpack-plugin@0.4.6 postinstall: `node lib/post_install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the uglifyjs-webpack-plugin@0.4.6 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-23T23_36_19_299Z-debug.log