pwa-angular icon indicating copy to clipboard operation
pwa-angular copied to clipboard

Error in Windows: An asset cannot be written to a location outside of the output path.

Open souvikbasu opened this issue 7 years ago • 0 comments

Getting error while running the app on Windows 10.

OS: Windows 10 Steps:

  • git clone the repo
  • npm i
  • npm start

Output: An asset cannot be written to a location outside of the output path.

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.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! [email protected] start: ng build --prod && npm run generate-sw && cd dist && node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script 'ng build --prod && npm run generate-sw && cd dist && node index.js'. 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 pwa-angular package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ng build --prod && npm run generate-sw && cd dist && node index.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs pwa-angular npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls pwa-angular npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Code\pwa-angular\npm-debug.log

souvikbasu avatar Nov 01 '17 18:11 souvikbasu