What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-19 09:55:09
rimraf node.js
// A viable alternative to `rm -rf` // GLOBAL INSTALL AND USE FROM CLI // npm install rimraf --global > rimraf ./node_modules // OR LOCAL PROJECT INSTALL // > npm install rimraf --save rimraf(`./${userIdFolder}/`, () => console.log(`DELETED ./${... Add solution -
TypeScript 2021-11-10 01:54:09
cannot find module 'typescript' angular 9
# NPM Installation Method npm install --global typescript # Global installation npm install --save-dev typescript # Local installation #Yarn Installation Method yarn global add typescript # Global installation yarn add --dev typescript # Local installation Add solution -
Shell/Bash 2021-09-01 04:30:02
npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
It's not recommended to use sudo with npm install, follow the steps from npmjs official docs instead :) Make a directory for global installations: mkdir ~/.npm-global Configure npm to use the new directory path: npm config set prefix '~/.npm-global'... Add solution -
Shell/Bash 2021-08-29 17:32:02
Cannot find module 'typescript'
# NPM Installation Method npm install --global typescript # Global installation npm install --save-dev typescript # Local installation #Yarn Installation Method yarn global add typescript # Global installation yarn add --dev typescript # Local installation Add solution